Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Option for drawing chart lines dashed #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JCarstens
Copy link

I added methods and variables to allow generic dashing of lines in the framework.

A simple method for trying this out is adding dash styles to a line plot (I think my changes only work with them, haven't investigated other plots further) like this:

plot.replace_dash_styles([[5, 5],[9999]]);

The first dash style means 5 pixels line then 5 pixels space and so on, the second one is a solid line. In general, dashing styles work pretty similar to colors. If you want the dashing shown in the legend, you have to set the new line_legend option to true.

Please write me if you have any further questions and thanks for creating this great framework in the first place. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant