Are Combinations Possible

Jan 13, 2012 at 10:58 PM

Is it currently possible to do chart combinations like the one on the highchart sight? http://www.highcharts.com/demo/combo

I assume not but please correct me I am wrong.

 

Developer
Jan 14, 2012 at 1:56 PM
Edited Jan 14, 2012 at 1:58 PM

Yes you can.

You only have to change the Type of the serie:

 

            // Original series with default settings
            series.Add(new Serie { data = new object[] { 400, 435, 446, 479, 554, 634, 687, 750, 831 } });
            // New Series with a diffent RenderType
            series.Add(new Serie { data = new object[] { 200,245,355 },type=RenderType.column });

 

You can have N series with N types in any chart.

The result will be like this:

 

We are currently recontructing the documentation and examples, so expect to see some new examples like this in a few days.

Developer
Jan 14, 2012 at 1:57 PM
Edited Jan 14, 2012 at 1:59 PM

-

Jan 17, 2012 at 5:01 AM

Thanks for the quick response- and look forward to more samples.  If you can add in some samples on how to do a custom Tooltip.  Trying to work through the source code at the moment to do that.

Keep up the great work - and I will try to contribute once I get smarter on it.

Developer
Jan 17, 2012 at 5:32 AM
Edited Jan 17, 2012 at 10:27 AM

Sample usage for custom tooltips is as follows: 

 <chartID>.Tooltip = new ToolTip("this.series.name + this.x +': '+ this.y");

 The text passed to the ToolTip Constructor is the javascript equivalent of the formatting. This component is exactly the same as examples that you would find on the Highcharts website.

 Let us know if you face any problems.

 Regards,

Rahul

 

 

Mar 26, 2012 at 7:40 PM

Hello everyone,

 

I tried to create a chart combination but my pie chart appeared in the middle and in front of my two other charts.

 

I have to use CSS... to solve this problem?

Have a nice day!

 

M.

Mar 26, 2012 at 8:01 PM

Hello, I am sorry

 

I checked the documentation and I used the property center....

Thanks!

M.

Mar 29, 2012 at 3:29 PM

Hi,

 

There is a way that if  I click a piece of my pie chart my column chart is updated.
Have a nice coding day!


M.