pChart 2.x forum
http://wiki.pchart.net/forum/

Symbol for series
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=70
Page 1 of 1

Author:  republica [ Thu Jan 13, 2011 2:43 pm ]
Post subject:  Symbol for series

With pChart 1.27 it was possible to choose a .gif as a symbol for a series (example), will this be possible in 2.x? I've tried looking for it but I can't find anything about it in the documentation.

Author:  jean-damien [ Thu Jan 13, 2011 5:20 pm ]
Post subject:  Re: Symbol for series

Support for this is already present in the core functions, only the rendering ones need to be finalized.

I'll add it to the todo of the next sub-release.

Are you using this function on your charts?

Kind regards,
JD.

Author:  republica [ Fri Jan 14, 2011 9:04 am ]
Post subject:  Re: Symbol for series

Yes, I am using it. I have a chart which shows the current weather, it has both the measured outdoor temperature for the last 12 hours and the forcasted temperature for the coming 12 hours. I use the icons to show the forecasted weather.

A nice feature would be to set an icon for each point, at the moment I have to create 24 series and set the icon to each of them (since I don't know which will be the same). But it's not critical since I already have the code to do it this way.

Attachments:
forecast_58.png
forecast_58.png [ 30.64 KiB | Viewed 9011 times ]

Author:  jean-damien [ Fri Jan 14, 2011 11:45 am ]
Post subject:  Re: Symbol for series

Excellent example! I've made 3/4 of the implementation yet and I'll add a possibility to provide a pictures data serie that can be positionned easilly. This will avoid you (and the other person that would like to do the same) to create 24 fake series ;o)

Thank you very much for the idea!
JD.

Author:  jean-damien [ Sat Jan 15, 2011 8:18 pm ]
Post subject:  Re: Symbol for series

This feature is now implemented for the drawPlotChart() and drawLegend() functions. (2.0.13)

-> will work on the other topic now!

JD.

Attachments:
example_drawPlotChart_icon.png
example_drawPlotChart_icon.png [ 37.22 KiB | Viewed 8999 times ]

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/