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

Captions design
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=151
Page 1 of 2

Author:  jean-damien [ Thu Jan 27, 2011 10:09 am ]
Post subject:  Captions design

Hi all,

I would be happy to have some feedback from you regarding the labels handling. This feature will be implemented in the next 2.1.1 subversion. The idea is to collect your wishes and expectation to provide an extensive set of customization option. You can see below the 1st draft implementation of the drawLabel() function.

Thank you all for your support and ideas!
JD.

Attachments:
example_drawLabel_bubble.png
example_drawLabel_bubble.png [ 31.18 KiB | Viewed 57124 times ]
example_drawLabel.png
example_drawLabel.png [ 28.88 KiB | Viewed 57124 times ]

Author:  jean-damien [ Fri Jan 28, 2011 4:39 pm ]
Post subject:  Re: Captions design

function re-used for the pIndicator module ;o)

Attachments:
example_drawIndicator.png
example_drawIndicator.png [ 12.55 KiB | Viewed 57124 times ]

Author:  jean-damien [ Wed Feb 02, 2011 10:02 am ]
Post subject:  Re: Captions design

Mixing it all together

Attachments:
example_Mixed_classes.png
example_Mixed_classes.png [ 34.45 KiB | Viewed 57098 times ]

Author:  Gemini420 [ Mon Feb 07, 2011 6:48 pm ]
Post subject:  Re: Captions design

Hi Jean-damien,

Wow, I came to the forums to ask about this very topic. I'm happy to see that you are already considering a 'Label' feature.

I am hoping that we could supply a series of 'Label' data strings (Series B). If this new series was flagged as a 'Label' type of series and tied to an existing data point series (Series A), then the chart classes could draw the appropriate Label strings along at the corresponding data points (given in Series A.)

I am very interested in this addition.

I am plotting some time series charts that also have unique 'events' occurring over time. It would really be great to label each event in the time series chart, to see how that event affected the charted values.

Thanks in advance,
Gemini420

For example ...

$myData->addPoints( array(5,7,6,6,5,4,2,0), "Serie1");
$myData->addPoints( array('Start', 'Reheated to 90C', null, null, 'Added 20 ml H20', null, null, 'Finished'), "Serie1Label");
$myData->setSerieAsLabels("Serie1", "Serie1Label");

Author:  jean-damien [ Tue Feb 08, 2011 2:35 pm ]
Post subject:  Re: Captions design

It is currently possible to give an array of point an another array of labels :

Code:
/* Write a label over the chart */
$LabelSettings = array("TitleR"=>255,"TitleG"=>255,"TitleB"=>255,"DrawSerieColor"=>FALSE,"TitleMode"=>LABEL_TITLE_BACKGROUND,"OverrideTitle"=>"Information","ForceLabels"=>array("Issue with the recording device","New recording device"),"GradientEndR"=>220,"GradientEndG"=>255,"GradientEndB"=>220);
$myPicture->writeLabel("Probe 2",array(1,3),$LabelSettings);


Would it be enough for you?

JD.

Attachments:
example.drawLabel.caption.png
example.drawLabel.caption.png [ 25.97 KiB | Viewed 57047 times ]

Author:  Gemini420 [ Tue Feb 08, 2011 10:15 pm ]
Post subject:  Re: Captions design

Thanks, that is exactly what I was looking for ...

I don't see a 'writeLabel' function in the code I have or in the docs, so I'm guessing it is still in development?

I'll help test once it is released!

Thanks,
Shane

Author:  richc1977 [ Fri Feb 18, 2011 7:11 pm ]
Post subject:  Re: Captions design

Yes, I'd like to use that function.
On the graphs below of ships, I'd be able to label up the particular ships against the year (one of the ships on the graph is the Titanic so I'd like to label the graph).

Attachments:
chart.max.dimensions.php.png
chart.max.dimensions.php.png [ 25.98 KiB | Viewed 57009 times ]

Author:  jean-damien [ Wed Feb 23, 2011 10:02 am ]
Post subject:  Re: Captions design

I'll try to publish the next subrelease this week with the according doc update.

Thanks for your feedback ;o)

Kind regards,
JD.

Author:  iamalsohere [ Mon Oct 24, 2011 1:53 pm ]
Post subject:  Re: Captions design

i konw it's an old topic, but I didn't want to create a new one!

Is it possible to add other format optoins (most importantly Alpha) to the labels? How about position of the labels (i.e. you currently have 'top', it would be nice to have 'bottom', 'left', and 'right')

Author:  lee8558 [ Tue Apr 17, 2012 6:35 am ]
Post subject:  Re: Captions design

:lol: :lol: :lol: :lol: :lol: :lol:

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