It is currently Fri Apr 25, 2014 8:43 am Advanced search

Change Column to Bar chart at run time and vice-versa

Technical support, bug reports and more.

Change Column to Bar chart at run time and vice-versa

Postby shayanakad » Thu Feb 23, 2012 2:56 pm

Hi

I need to convert column charts to bar charts with multiple series at run time.
I 'v tried converting to other chart types and they work. But still they are created either horizontally or vertically
based on previous chart type.
eg:-
if original chart was a bar chart, changed chart will be created horizontally and if it is a column chart it will be created vertically .

I have tried inverting the charts as well but it didn't work.
any help would be appreciated.


Thanks
Shayanaka
shayanakad
 
Posts: 1
Joined: Thu Feb 23, 2012 2:38 pm

Re: Change Column to Bar chart at run time and vice-versa

Postby hfrntt » Mon Feb 27, 2012 3:59 pm

I suppose that it just won't work for now. When you create chart for the first time it enables inverted axes or not. This setting can't be changed in runtime. Bar chart is just a column chart with inverted axes. If you want to toggle between these two types, you have to call new Highcharts.Chart function.
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am


Return to Highcharts Usage

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests