How to plot discrete segments from path.cubicTo() based on null value of that point. #896
Unanswered
pandey21197
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The createPath return the path for all the points, but how can we get discrete paths when value is null for that point.
eg for data set:
export const data = [
{x: '2000-02-01T05:00:00.000Z', y: 250},
{x: '2000-02-02T05:00:00.000Z', y: 300.35},
{x: '2000-02-03T05:00:00.000Z', y: 150.84},
{x: '2000-02-04T05:00:00.000Z', y: 500.92},
{x: '2000-02-05T05:00:00.000Z', y: 200.8},
{x: '2000-02-06T05:00:00.000Z', y: 150.47},
{x: '2000-02-07T05:00:00.000Z', y:0},
{x: '2000-02-08T05:00:00.000Z', y: 0},
{x: '2000-02-09T05:00:00.000Z', y: 1500.47},
{x: '2000-02-10T05:00:00.000Z', y: 83.8},
{x: '2000-02-11T05:00:00.000Z', y: 100.47},
{x: '2000-02-12T05:00:00.000Z', y: 1000.47},
{x: '2000-02-13T05:00:00.000Z', y: 200.47},
{x: '2000-02-14T05:00:00.000Z', y: 500.47},
{x: '2000-02-15T05:00:00.000Z', y: 600.47},
];
for y value 0, it creates single path with plotted 0 value, rather we want to create discrete paths:
expected outcome:
Beta Was this translation helpful? Give feedback.
All reactions