domitry / nyaplot

interactive plots generator for Ruby
MIT License
219 stars 27 forks source link

Change the style of line used in a line graph #49

Open v0dro opened 9 years ago

v0dro commented 9 years ago

Currently line graphs use solid lines only. Being able to specify the type of line would be a great add-on.

For example dashes - - - or dots . . . or even asterisk * * *.

domitry commented 9 years ago

Maybe you can implement such feature by adding new option named 'type' or some others.

https://github.com/domitry/Nyaplotjs/blob/master/src/view/diagrams/line.js#L33 https://github.com/domitry/nyaplot/blob/master/lib/nyaplot/diagram.rb#L245

See also: http://www.d3noob.org/2013/01/making-dashed-line-in-d3js.html

v0dro commented 9 years ago

Thanks I'll take a look into it.