williaster / data-ui

A collection of data-rich UI components 📈
https://williaster.github.io/data-ui/
MIT License
546 stars 69 forks source link

How to make lines straight #178

Closed lonalee closed 5 years ago

lonalee commented 5 years ago

Hello there. I was astonished by all your brilliant data-ui! I finally got a chart on my project to work just fine! But only one thing is bothering me. I wanna get the straight lines (using LineSeries with only curve lines)! It would be great if you let me know how to handle the shape of lines. Thank you very much.

williaster commented 5 years ago

Hi @lonalee I assume you are talking about the @data-ui/xy-chart package, you can accomplish this simply by setting the interpolation prop to linear.

thanks for checking out @data-ui!