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

How to draw Line segments in one Line Chart. #235

Closed
zxhfirefox opened this issue Jul 22, 2015 · 7 comments
Closed

How to draw Line segments in one Line Chart. #235

zxhfirefox opened this issue Jul 22, 2015 · 7 comments

Comments

@zxhfirefox
Copy link

I have a question about how to draw one data set which some data entry has no value, I find this answer on stackoverflow.
But, I find that if we omit the values, the line still is one line, my question here is can I draw line segments instead of one line ? or I need to do it by myself ?

@zxhfirefox
Copy link
Author

I think out a solution.
I draw multiple data sets, each one have one segment for it.

@zxhfirefox
Copy link
Author

But this one may have  performance problem if we have too much line segments.

@danielgindi
Copy link
Collaborator

It should have similar performance. In a standard line chart, if you have "segments" then they are different data sets.

@liuxuan30
Copy link
Member

@danielgindi can the rules be applied for combined chart? e.g. at a xIndex: 5, it has a bar data, but no line data, and the line should be cut.

@danielgindi
Copy link
Collaborator

Performance of two 50 points datasets shoul be the same as one 100 points
dataset (Add an extra CPU op or two for the for-loops)
So don't worry about it.

Unless you actually encounter or measure a performance problem, do not
worry about it.

@liuxuan30
Copy link
Member

How about In a standard line chart, if you have "segments" then they are different data sets. for comebined chart? Can it apply to combined chart?

@danielgindi
Copy link
Collaborator

Why not? :)

‏בתאריך יום רביעי, 22 ביולי 2015, Xuan notifications@github.com כתב:

How about In a standard line chart, if you have "segments" then they are
different data sets. for comebined chart? Can it apply to combined chart?


Reply to this email directly or view it on GitHub
#235 (comment)
.

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

No branches or pull requests

3 participants