|
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
combined line and bar charts
Author |
Message |
tcraig
|
combined line and bar charts
Hi, I was wondering if (and if so how) it will be possible to combine line and bar charts. As an example, it would be good to be able to show energy use as a bar graph, and temperature as an overlaid line graph. Cheers Tony
|
Sat Dec 11, 2010 1:32 pm |
|
|
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
Re: combined line and bar charts
You can combine any number of charting function. The idea is to first draw the scale then invoke the charting methods (bar, spline, line, plot,...)
You may want to draw only one serie as a bar chart and another one with a line chart. To do so, play with the setSerieDrawable() method of the pData class.
Kind regards, JD.
|
Tue Dec 14, 2010 10:34 pm |
|
|
mykchan
Regular pChart user
Joined: Mon Dec 13, 2010 7:54 am Posts: 13 Location: Gold Coast, Australia
|
Re: combined line and bar charts
thanks, JD. i was wondering the same thing as original poster. here's how i accomplished it: http://pastebin.com/pUyNAheN
|
Wed Dec 15, 2010 2:38 am |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 7 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|
|