Replies: 3 comments 4 replies
-
So, I tried something that almost worked I set ErrorDataSetRenderer.setAllowNaNs(true) Then I sent in the following data (converting nulls to Double.NaN of course) new Integer[]{1,2,3,4,5,6,7,8,9,10}, neither 4->5 nor 5->6 segments were drawn (that's good), any ideas ? I am trying to move all of the development away from JFreechart and instead using chart-fax ... |
Beta Was this translation helpful? Give feedback.
-
I tried ErrorDataSetRenderer with "setPointReduction(false) & setAllowNaNs(true)" and indeed this did work I also tried using ReducingLineRenderer and that worked as well |
Beta Was this translation helpful? Give feedback.
-
Hello,
Do you have an example where the data along one of the axes are Integers only?
I am trying to do this, and if I zoom in too tightly the grid lines are not placed properly?
I am sure the issue is on my end, which is why I am asking to see if you have an example like this?
Thx … jules
From: Alexander Krimm ***@***.***>
Sent: Thursday, May 6, 2021 11:21 AM
To: GSI-CS-CO/chart-fx ***@***.***>
Cc: Jules Yasuna ***@***.***>; Author ***@***.***>
Subject: Re: [GSI-CS-CO/chart-fx] How do I render gaps or nulls or breaks in the data (#413)
I did a fix for this in #414 <#414> , thanks for reporting will probably be fixed in the next release.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#413 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AA6OD2ETA4YHV3AYVPSVS2DTMKXUZANCNFSM44C5JZMQ> . <https://github.com/notifications/beacon/AA6OD2B5ZEN44Y6362AH243TMKXUZA5CNFSM44C5JZM2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAFMBZQ.gif>
|
Beta Was this translation helpful? Give feedback.
-
I am starting with this data (just as an example)
Double[] x = new Double[]{1d,2d,3d,4d,5d};
Double[] y = new Double[]{1d,2d,null,4d,5d};
When converting the data to primitives for the DataSet the "null" becomes "Double.NaN" (I do the conversion)
I had hoped I would then see a simple line plot with a break in it, meaning a line for 1->2 and then a line from 4->5
But instead I see a "sawtooth" where line is drown from 2 down to the x-axis and back up again to 3
So, how do I handle "breaks" in my data? I just want that {2,null} to be considered in x-axis ranging but not drawn
Beta Was this translation helpful? Give feedback.
All reactions