View unanswered posts | View active topics It is currently Thu Mar 28, 2024 9:00 am



Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Captions design 
Author Message
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post 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 57063 times ]
example_drawLabel.png
example_drawLabel.png [ 28.88 KiB | Viewed 57063 times ]
Thu Jan 27, 2011 10:09 am
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Captions design
function re-used for the pIndicator module ;o)


Attachments:
example_drawIndicator.png
example_drawIndicator.png [ 12.55 KiB | Viewed 57063 times ]
Fri Jan 28, 2011 4:39 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Captions design
Mixing it all together


Attachments:
example_Mixed_classes.png
example_Mixed_classes.png [ 34.45 KiB | Viewed 57037 times ]
Wed Feb 02, 2011 10:02 am
Profile WWW
New pChart user
New pChart user

Joined: Sun Feb 06, 2011 4:45 pm
Posts: 3
Post 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
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post 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 56986 times ]
Tue Feb 08, 2011 2:35 pm
Profile WWW
New pChart user
New pChart user

Joined: Sun Feb 06, 2011 4:45 pm
Posts: 3
Post 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
Profile
pChart user
pChart user

Joined: Fri Jan 21, 2011 12:58 pm
Posts: 6
Post 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 56948 times ]
Fri Feb 18, 2011 7:11 pm
Profile
Site Admin
Site Admin
User avatar

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

Joined: Mon Oct 24, 2011 1:50 pm
Posts: 1
Post 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
Profile
New pChart user
New pChart user

Joined: Tue Apr 17, 2012 6:33 am
Posts: 1
Post Re: Captions design
:lol: :lol: :lol: :lol: :lol: :lol:

_________________
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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ]  Go to page 1, 2  Next

Who is online

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