domitry/nyaplot

Show Y axis values in line graphs

v0dro opened this issue · 1 comments

Line graphs only show the line along which the data exists and are very limiting in nature for things like showing the temperature of a city on each day of the week.

It would be great if line graphs could display the Y co-ordinate values at the vertices. Adding tooltip_contents support like that in scatter plots would also be good.

Heres an example graph of what I'm saying:

You can implement the feature by adding new option to:
https://github.com/domitry/Nyaplotjs/blob/master/src/view/diagrams/line.js#L33