Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plot without lines with Dygraphs

I can't find a way to render my graph as separate points. I want each point to be rendered separately. In my case drawing a line between data points doesn't make sense.

like image 544
MasterScrat Avatar asked Apr 17 '14 12:04

MasterScrat


1 Answers

You can set strokeWidth to zero: demo

new Dygraph(data, div, {
  drawPoints: true,
  strokeWidth: 0,
  pointSize: 5
});
like image 183
danvk Avatar answered Oct 17 '22 02:10

danvk