Z
Z
zlodiak2018-11-28 21:27:04
SVG
zlodiak, 2018-11-28 21:27:04

Why is the horizontal spline not drawn?

Guys, please help me understand why using the d3 library it is impossible to draw a spline for a set of points that have the same values ​​along the vertical axis.
Here is a working demo . Here is a non-working demo .
The only difference between them is that in the first demo, I initialized the first point with a slightly different value:

const responseData = [
  { dateUnix: 1534809600, price: 34545.01 },
  { dateUnix: 1536809600, price: 34545 },
  { dateUnix: 1538809600, price: 34545 },
  { dateUnix: 1540809600, price: 34545 },
  { dateUnix: 1542809600, price: 34545 }
];

This solved the problem, but I would like to do without such a crutch.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-11-28
@zlodiak

look - googled for you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question