John
John

Reputation: 426

Is it possible for the c3js zoom function to zoom into the y values as well?

Whenever I use the zoom in function on my c3js charts, only the x-axis and its values are zoomed in, while the y-values and axis stay constant. Is there a way to enable for the y-axis to also be zoomed into?

Upvotes: 2

Views: 1935

Answers (1)

Naveen Paul
Naveen Paul

Reputation: 454

You can reset the values of the Y-axis.

Usage:

zoom: { rescale: true }

Refer http://c3js.org/reference.html#zoom-rescale

Upvotes: 5

Related Questions