View unanswered posts | View active topics It is currently Wed May 08, 2024 12:26 pm



Reply to topic  [ 3 posts ] 
combined line and bar charts 
Author Message
Post 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
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post 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
Profile WWW
Regular pChart user
Regular pChart user

Joined: Mon Dec 13, 2010 7:54 am
Posts: 13
Location: Gold Coast, Australia
Post 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

Image


Wed Dec 15, 2010 2:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 10 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

Search for:
Jump to:  
cron