javascript - Flot add marker to line on graph -


I am trying to attract the graph which shows a person's weight (y axis) over time ( X-axis). I would also have to show a marker for an event like a change in medicine on a specific day. Is it possible to add dataseries to a point with only one time value, which is included in the line drawing, but can not change the drawing of the line?

You can use symbols to display a line or interval in the chart

Here's an example:

Basically you can just add it to a vertical line:

  var myPlot = $ .plot (element, Data, {grid: {marks: [[color: '# 000', linewhite: 1, xxis: {to: 2, from: 2}},}}});  

this will have to draw a black vertical line with width 1px x = 2


Comments