I want to develop an interactive chart using a JS library. In this chart I want to have buttons (inside the chart), in this way (in red):
I want also to change the line type (dotted for example).
I tried Morris.js but this lib is not allowing me to do what I want to do.
Is there any other library that I can use instead ?
That's possible with
Morris.js
, but you need to add some code to Morris (latest version 0.5.1) to draw dotted lines:Extend Morris and add a parameter called
lineStyle
and set this parameter to.
in the Morris Area configuration.See this answer for the possible values for raphael.js line style:
On
mouseover
solution:Static solution: