-2

I'm looking to change the yAxis type from "logarithmic" to "linear" dynamically through the API. this will NOT be inside of an event tied to the graph

Anyone know how to do it?

Strikers
  • 4,698
  • 2
  • 28
  • 58
jadent
  • 3,674
  • 5
  • 27
  • 32
  • You need to present code here, not a requirement list and then ask us to build it for you. – Mina Gabriel Oct 12 '13 at 18:32
  • any way see this http://stackoverflow.com/questions/how-to-ask – Mina Gabriel Oct 31 '13 at 17:42
  • possible duplicate of [How to dynamically change axis from linear to logarithmic in HighChart](http://stackoverflow.com/questions/16324284/how-to-dynamically-change-axis-from-linear-to-logarithmic-in-highchart) – Mina Gabriel Oct 31 '13 at 17:45

1 Answers1

3

you can use the axis.update method from highcharts documentation. this method helps you in updating the axis options.

chart.yAxis[0].update({
   type: types[type]
});

here is an example for you http://jsfiddle.net/7h2Vg/

hope this will be useful.

http://api.highcharts.com/highcharts#Axis.update()

Sebastian Bochan
  • 37,348
  • 3
  • 49
  • 75
Strikers
  • 4,698
  • 2
  • 28
  • 58