Page 1 of 1

Jpgraph.......... Mark the filled circle

Posted: Tue Dec 04, 2007 12:19 am
by sandy1028
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi,

Suppose

$value=array(23,45,56,34,464,0); 

is the array

How to mark the filled circle at the place where value is 0.

Code: Select all

foreach($value as $val){
if($val == 0){

$lineplot->mark->SetType(MARK_FILLEDCIRCLE);
$lineplot->mark->SetFillColor("black");
$lineplot->mark->SetWidth(2);
Here all the values of the array are marked with black


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]