Open liuderchi opened 7 years ago
react-sparklines
README.md
looks like NO API for smooth curve
<SparklinesLine />
<SparklinesCurve />
using svg path
and additional points are insertedreact-sparklines
generate polyline
with data
data
of <polyline>
polyline
attr to support Bézier curves
polyline
is for straight lines. Adding more points won't help when zoomed.path
supports Bézier curvepath
from data (D3?)path
survey
C
is for cubic Bézier curveQ
is for quadratic Bézier curve<SparklinesCurve />
uses C
by using <SparklinesCurve />
with setting prop divisor
, we now have smoother curve
divisor
is used to insert additional control points for Bézier curve
.
it would look better if the line in the chart is smooth. Currently there are cusps.
GOAL
NOTE
<polyline>
with point data specified inpoints
attrreact-sparklines
TODO
react-sparklines
react-sparklines
generatepolyline
with datapolyline
attr to support Bézier curvespath
survey