lexin
lexin

Reputation: 13

How can I set multiple Y axis in dygraph?

I love dygraph!

When adding multiple series in a chart, I don't know how to show multiple Y axis's.

I noticed there is an example: http://dygraphs.com/tests/value-axis-formatters.html, it has only 2 y axis, I modified the source code, adding axis's for Y1 and Y2, the axis are overlapping with each other on the left side.

Thanks

Upvotes: 1

Views: 1808

Answers (1)

mjpeterson
mjpeterson

Reputation: 105

What does your code look like?

To add multiple y-axes you need to put an axes argument where you put the rest --

axes: { y2: {} },
series: { "Series Name": { axis: 'y2' } }

Upvotes: 2

Related Questions