![](./styles/avalon/theme/images/spacer.gif) |
Author |
Message |
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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 [ 31.18 KiB | Viewed 62170 times ]
example_drawLabel.png [ 28.88 KiB | Viewed 62170 times ]
|
Thu Jan 27, 2011 10:09 am |
|
![](./styles/avalon/theme/images/spacer.gif) |
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: Captions design
function re-used for the pIndicator module ;o)
Attachments:
example_drawIndicator.png [ 12.55 KiB | Viewed 62170 times ]
|
Fri Jan 28, 2011 4:39 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: Captions design
Mixing it all together
Attachments:
example_Mixed_classes.png [ 34.45 KiB | Viewed 62144 times ]
|
Wed Feb 02, 2011 10:02 am |
|
![](./styles/avalon/theme/images/spacer.gif) |
Gemini420
New pChart user
Joined: Sun Feb 06, 2011 4:45 pm Posts: 3
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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");
|
Mon Feb 07, 2011 6:48 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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 [ 25.97 KiB | Viewed 62093 times ]
|
Tue Feb 08, 2011 2:35 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
Gemini420
New pChart user
Joined: Sun Feb 06, 2011 4:45 pm Posts: 3
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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
|
Tue Feb 08, 2011 10:15 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
richc1977
pChart user
Joined: Fri Jan 21, 2011 12:58 pm Posts: 6
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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 [ 25.98 KiB | Viewed 62055 times ]
|
Fri Feb 18, 2011 7:11 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
jean-damien
Site Admin
Joined: Thu Dec 02, 2010 2:31 pm Posts: 409 Location: France
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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.
|
Wed Feb 23, 2011 10:02 am |
|
![](./styles/avalon/theme/images/spacer.gif) |
iamalsohere
New pChart user
Joined: Mon Oct 24, 2011 1:50 pm Posts: 1
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) 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')
|
Mon Oct 24, 2011 1:53 pm |
|
![](./styles/avalon/theme/images/spacer.gif) |
lee8558
New pChart user
Joined: Tue Apr 17, 2012 6:33 am Posts: 1
|
![Post Post](./styles/avalon/imageset/icon_topic_latest.gif) Re: Captions design
_________________ Welcome to http://www.wholesalehats-jerseys.com. As the one of hats&sunglasses store,we supply thousands of high-quality merchandise hats&sunglasses. Our website is updating.
|
Tue Apr 17, 2012 6:35 am |
|
|
Who is online |
Users browsing this forum: No registered users and 0 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
|
|
![](./styles/avalon/theme/images/spacer.gif) |