JpGraph setWeight for solid line

Can you help me set the weight of the solid line on JpGraph?

A string is created using

// Create the first line
$p1 = new LinePlot($datay1);
$p1->SetStyle('solid');
$p1->SetWeight('20');
$p1->SetColor("#6495ED");
$p1->SetLegend('Line 1');
$graph->Add($p1);

With this code, the line weight is 1.

But if the string is defined as

$p1->SetStyle('dotted');

... line weight is 20px.

Can you tell me what I am doing wrong in determining the line. I need a bolder solid line ...

Thank you in advance!

+5
source share
2 answers

I had a similar problem, solved with $ p1-> SetStyle ('solid') AFTER adding a line chart to the chart:

    $p1 = new LinePlot($min_values);
    $graph->Add($p1);
    $p1->SetWeight(3); 
    $p1->SetColor("blue");
    $p1->SetLegend("Minimum Values");
    $p1->SetStyle("solid");
+3
source

According to the JPGraph Documentation :

= 1. , .

, $graph->img->SetAntiAliasing(false);

0

All Articles