0

Okay. i have this problem in line graph. Tickmarks(data-points) are not aligned with vertical grid lines. is there a way to achieve that.please help?

sample of line graph

Danish
  • 503
  • 3
  • 14

2 Answers2

0

you number of tick marks need to match the number of vlines. What I often do is I will get the count of my labels variable (with javascript) and so something like this.

 var numTicks = labelVariable.length;

Then on draw of the graph

 options: {
      numxticks: num_ticks
 }
Philip Wiggins
  • 93
  • 1
  • 1
  • 8
-1
var xticks = 10;  

or with php

var xticks = "<php echo $yourvariable ;?>";

var line  = .......
.set('chart.numxticks',xticks)
CSchulz
  • 10,882
  • 11
  • 60
  • 114
0-PETER-0
  • 1
  • 1