react-native-pathjs-charts icon indicating copy to clipboard operation
react-native-pathjs-charts copied to clipboard

SmoothLine Graph overlapping y axis

Open irfanayaz89 opened this issue 8 years ago • 1 comments
trafficstars

Before filing an issue please ensure the following boxes are checked, if applicable:

  • [✓] I have searched for existing issues
  • [ ✓] I have provided detailed instructions that can reproduce the issue (including code and data necessary)

SmothLine graph overlaps y-axis if two data points have a significant difference in x values. For example, in my case, for data

[ [ { x: 0, y: 75 }, { x: 1.7419354838709677, y: 75 }, { x: 13.741935483870968, y: 75 } ] ]

the graph drawn is:

screen shot 2017-03-23 at 6 46 38 pm

Could you help me on this? Any pointers into fixing would be really appreciated!

irfanayaz89 avatar Mar 23 '17 13:03 irfanayaz89

Thanks for submitting an issue.

It's also interesting to note on this particular data set, that I didn't even see a chart rendered without using min:0,max:100 for the options - I just saw an x axis line with no y-axis and no smoothline chart drawn.

As we fix this bug, we should make sure both variations of behavior are fixed.

marzolfb avatar Mar 26 '17 16:03 marzolfb