Skip to content

Conversation

@jannhama
Copy link

@jannhama jannhama commented Sep 1, 2015

…o zero

I added this feature to make possible to have chart with datapoints visible only. This is done by defining stroke width in datasets instead of global config parameters. I used this version in a chart with one dataset having datapoints + line and one dataset with datapoints only.

Copy link
Owner

@dima117 dima117 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use scatter chart plugin for chart.js v1 during chart.js v2 is exist and contains own scatter chart implementation?

ctx.beginPath();

helpers.each(dataset.points, function (point, index) {
if (dataset.strokeWidth==0) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please invert this if to avoid multiple return points of the funciton

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.

2 participants