1

I am using the latest pChart and I am trying to only have one series display its points labels on a line chart. Below you can see the chart and it has 3 series with data point labels on all series. I would like to just have the heavy green series only have the point labels.

Chart Pic

 /* Draw the line chart */ 
 $myPicture->drawLineChart();
 $myPicture->drawPlotChart(array("DisplayValues"=>TRUE,"PlotBorder"=>TRUE,"BorderSize"=>2,"Surrounding"=>-60,"BorderAlpha"=>80));
  • I might say something stupid, But its just an idea Is there a way you could overlaps charts and have one char with one serie with display values and the other chart with the other serie with no display values ? – Nicolas Racine May 29 '15 at 17:33
  • you might be able to do this, but I am rendering them as images so overlaying a image on top of another would not work for me. – user2611407 Jun 11 '15 at 17:28

1 Answers1

0

You can use the writeLabel method, it puts a bubble over the selected values, but it can be customized in the third parameter.

The first parameter should be the name of the green label, and the second parameter should be an array which contains all the keys of the points.

RamenChef
  • 5,557
  • 11
  • 31
  • 43
weszy
  • 41
  • 1