View unanswered posts | View active topics It is currently Thu Mar 28, 2024 12:01 pm



Reply to topic  [ 9 posts ] 
Show type of line on Legend 
Author Message
Post Show type of line on Legend
Hi all!

On my site I have a lot of graphics, and i get some users that have daltonism. Is a little hard to find collors that they can see without problems to differentiate the lines on graphics with more than 3/4 lines.

The solution is use diferent type of lines, but for it works on this case, the legend need to show it too.

Is ti possible to realse something like it?

Example:

Legend
- - - Line 1
____ Line 2
. . . Line 3

Tks


Sat Jan 08, 2011 3:59 pm
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Show type of line on Legend
Hi,

This is an excellent idea! I'll add an extra option to the drawLegend() function to specify the way we want to display the serie icon (box, line [with style], icon,...)

--This will be implemented in the 2.0.12.

Kind regards,
JD.


Sat Jan 08, 2011 5:26 pm
Profile WWW
Post Re: Show type of line on Legend
Tks Jean!

Its will be very helpfull!


Sat Jan 08, 2011 11:05 pm
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Show type of line on Legend
Here you are : drawScale()

I've added different legend families :

LEGEND_FAMILY_BOX
LEGEND_FAMILY_CIRCLE
LEGEND_FAMILY_LINE

You'll have it in the next sub release.
JD.


Attachments:
drawlegend.png
drawlegend.png [ 15.85 KiB | Viewed 12031 times ]
Mon Jan 10, 2011 10:31 am
Profile WWW
Regular pChart user
Regular pChart user

Joined: Thu Jan 06, 2011 1:51 pm
Posts: 11
Post Re: Show type of line on Legend
Is there a way to make the rectangles or circles bigger? :)


Mon Jan 10, 2011 3:02 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Show type of line on Legend
Sure ;o)

The BoxWidth and BoxHeight parameters are here for this!


Mon Jan 10, 2011 3:17 pm
Profile WWW
Post Re: Show type of line on Legend
Ow!

Tks Jean!

To be perfect, maybe you can add a point line (....). To help daltonism users will be great.

setSeriePoints($Serie,$Width);

LEGEND_FAMILY_LINE : points.

When you have time!


PS: I got erros on unzip release 2.0.12. Forcing unzip, i got new archive without extension, renaming to zip, i could unzip and finally get archives.


Mon Jan 10, 2011 6:40 pm
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: Show type of line on Legend
Maybe you've downloaded tar.gz or have used Firefox.

_________________
Image


Mon Jan 10, 2011 8:10 pm
Profile WWW
Post Re: Show type of line on Legend
Nops
I´m using IE

Winzip cannot unzip it, with winrar, i got the new archice withou extension.


Mon Jan 10, 2011 9:13 pm
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

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