Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Hi Alexandre,
Thank you very much for this demo, very helpful.
Just one question: How do I combine a Bar and and a Line in one chart?
Thanks in advance!
Cheers, Paul
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Hi Paul,
I'm glad that you liked the demo.
This is a missing bit that it's ready but I couldn't test before releasing the latest update (15.2.64) so it hasn't been included, but we are going to release it in a few days.
To combine 2 different charts in one, you just need to create a second series with a different chart type.
If you check the third chart in that demo, I create 1 additional series (the main series is built-in).
For instance, to change the second series to a line, you can do this:
// create a second series here
SecondSeries := IWChartJS4.AddSeries(ctLine, 'Year 2050');
Then you will have the main series as a bar chart and the second series as a line one. Simple :-)
Posts: 99
Threads: 17
Joined: Aug 2018
Reputation:
7
Location: The Netherlands
Hi Alexandre,
Thank you for your response. I tried creating a second series as a ctLine, and I can confirm that this doesn't work.
Whatever I try, the Chart keeps showing all series as the ChartType initially set on the TIWChartJS itself.
Cheers, Paul
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Regarding stack bars, yes, it will be possible in the next release