dhuertas / graph.js

A javascript graph library to plot matlab-like charts using HTML5 canvas
Other
4 stars 1 forks source link

Styles for lines and points? #29

Open rkompass opened 1 year ago

rkompass commented 1 year ago

Hello dhuertas,

found this nice little library. Thank you for creating it. I like the Matlab/matplotlib - like style. I'm thinking about using it with Micropython.

Is it possible to use different styles for lines and points? If yes, how can I do so?

dhuertas commented 1 year ago

Hi there!

You're welcome. Thanks for the nice feedback.

I am not sure I understand your question. Do you want to apply a style (i.e. color) to a line chart, then a different one to a point chart on the same plot?

rkompass commented 1 year ago

I would like to have the ability to plot different graphs in one chart, with styles like 'dotted', 'dashdot' etc., compare matplotlib options like here. You have dotted lines forming a grid in the chart, is there an option to set this style to the data lines, for example? I tried to search the examples and code and did not find such an option, but I have to admit I'm a beginner to Javascript and DOM and all the like..