0

I have quite a large dataset, about a 1000 values. (temperature graph)

temperature graph
As you can see i have too many ticks between the hours, i only want one tick per hour.
Now it's a very think black line, how can i fix this?

The x axis array is like this:
[2] = 1
[3] = NULL
[4] = NULL
[5] = 2
[6] = NULL
etc

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
HyperDevil
  • 2,519
  • 9
  • 38
  • 52

2 Answers2

2

In the scale settings, you must set the LabelSkip.

$labelskip = 1000/24; // values = 1000, hours = 24
$scaleSettings = array("LabelSkip"=>$labelskip);    
$myPicture->drawScale($scaleSettings);
Yannis
  • 912
  • 2
  • 14
  • 34
0

The error was generated form $MyData->setSerieTicks("Time",1000); you have 2 lines in your chat cahnge it to $MyData->setSerieTicks("Time",1); you would see the difference

Baba
  • 94,024
  • 28
  • 166
  • 217