This repository was archived by the owner on Jun 2, 2019. It is now read-only.
Repository navigation
v1.2.0
Support data as value objects, in addition to values.
In v1.1.x, the data prop was only accepted as an array of numbers:
<Trend data={[1, 2, 3]} />This version allows you to pass an array of objects that contain the values:
<Trend data={[{ value: 1 }, { value: 2 }, { value: 3 }]} />This is not inherently useful as is (although it may be convenient if your data happens to already be in this form factor). It's a precursor to some cool things we'd like to do, such as providing tooltips when hovering over points.