-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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 can I draw inconsecutive line chart? #533
Comments
Well there is #280 asking for it but not implemented yet. It's not as easy as it looks like, because we have to think about the filling for negative + positive values and the zero y axis cutting. I had my own implementation, excluding the filling part, and still buggy. #335 is a PR but closed early, I guess it has the same problem as mine. |
This does not sound like a normal line chart, but rather like multiple בתאריך יום חמישי, 5 בנובמבר 2015, Xuan [email protected] כתב:
|
it's just a xIndex which has no value. But, multiple datasets are a great trick! Though we have to break the data sets :) |
An xIndex with no value should not mean "break the line", but "I have no On Thu, Nov 5, 2015 at 8:05 AM, Xuan [email protected] wrote:
|
Breaking the line is neccessary. Try multiple lines in one chart:
How can this be implemented ? |
@danielgindi @AntiMoron I think what @danielgindi said is you need 4 dataSets for this two lines? the first 2 dataSets are Line1, and the last 2 are Line 2? So it can render like line break, but requires addtional logic to break the data sets. Will this workaround for you? I will vote line break feature for sure :) |
@liuxuan30 I was just thinking how the semantic about an xIndex with no value that Daniel described fit the situation I assumed. |
For now,this workaround is fine.Thx |
Well, it's not 2 lines, it's 4 lines! On Thu, Nov 5, 2015 at 2:40 PM, Anti_Moron [email protected] wrote:
|
😂 😂 😂 😂 😂 😂 😂 alright then |
We may support this in the future though On Thu, Nov 5, 2015 at 2:42 PM, Anti_Moron [email protected] wrote:
|
Looking forward to!! |
May I offer a solution for 1 color per line situation? (since I only use one color per line) `class LineChartLineBreakRenderer: LineChartRenderer {
}` |
I understand the concept of breaking the line graph into multiple sets in order to achieve different sections with no line in between. However I don't like this concept, especially when multiple different types of lines are involved (e.g. with right and left axis). All assorted colors and labels would need to be taken into consideration as well. In my use case historic battery current and voltage is displayed in a single line chart, and the sample data sometimes has gaps. The nominal interval is 600 seconds. See attached how the graph currently looks like, the gaps are marked with the red arrows. Any ideas how to better handle this situation? Thanks. OK, I made an array of arrays with the data, so I can group it
|
|
You just need to skip x values
|
@sashkopotapov - Hi. Your subclass isn't working anymore. Do you have a working example? Thank you. |
Hi, Someone knows if currently there is already an official solution for this requirement within the library? |
How can I draw line chart with some data not set.
For example:
Point at x = 3 is missing. The line chart should break at x = 3
The text was updated successfully, but these errors were encountered: