View unanswered posts | View active topics It is currently Wed May 08, 2024 9:55 pm



Reply to topic  [ 3 posts ] 
drawThreshold weight 
Author Message
New pChart user
New pChart user

Joined: Wed Jan 19, 2011 2:29 pm
Posts: 2
Post drawThreshold weight
Hi, great job with the new pChart. Very easy and straight forward.

I have made a change to our source though, as it made no sense how it was otherwise. Could it be something you could implement in pChart, so we don't have to fix this issue every time a new version comes out?

Simply adding

Code:
$Weight = isset($Format["Weight"]) ? $Format["Weight"] : NULL;


and changing all $this->drawLine functions to include the weight parameter works, eg.

Code:
$this->drawLine($this->GraphAreaX1,$YPos,$this->GraphAreaX2,$YPos,array("R"=>$R,"G"=>$G,"B"=>$B,"Alpha"=>$Alpha,"Ticks"=>$Ticks, "Weight"=>$Weight));


I don't see any reason why this wasn't added, so feature request, to add this simple fix to your code? :)

Thanks


Wed Jan 19, 2011 2:32 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: drawThreshold weight
Hi,

This has been added to the source that will be published under the 2.1.0 version.

Thanks for having noticed it and proposed an enhancement ;o)

JD.


Wed Jan 19, 2011 3:18 pm
Profile WWW
New pChart user
New pChart user

Joined: Wed Jan 19, 2011 2:29 pm
Posts: 2
Post Re: drawThreshold weight
Hi, thanks a lot.

As a fix on your website:

http://pchart.net/license

"Single Web server license" is commercially sat as forbidden, whereas "Non profit web sites (not GPLs)" says it can be used commercially? Aren't they switched around?


Thu Jan 20, 2011 10:01 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

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