Dean Hiller
Dean Hiller

Reputation: 20192

can zoom be mixed with multiple y-axis in highstock

We are using high stock and I was trying to combine these two examples

a base highcharts example

a base highstock example

such that zoom can be used with multiple axis. This is the result where the y-axis is now all screwed up

my merged example with literally just one tweak to highcharts code

Is there any way to get zoom with multiple axis working in one chart? This would seem like a pretty common desire. (The thing that breaks is the y-axis starts overlapping and stepping on each other when these examples were combined)

thanks, Dean

Upvotes: 2

Views: 1680

Answers (2)

Paweł Fus
Paweł Fus

Reputation: 45079

Since you have Highstock loaded to the site, you can create simple Highcharts chart, and enable features from Highstock, for example: http://jsfiddle.net/rP5su/1/

        navigator: {
            enabled: true
        },
        rangeSelector: {
            enabled: true
        },
        scrollbar: {
            enabled: true
        },

Of course that solution requires Highstock to work, simple Highcharts library doesn't contain navigator, scrollbar etc.

Upvotes: 1

Dean Hiller
Dean Hiller

Reputation: 20192

Well, I am not sure why the merge doesn't work, but the work around was to specify an offset on each y-axis, 100 for the first axis, 200 for the second axis, etc. which worked around the issue.

Upvotes: 0

Related Questions