| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2017-03-01 | 559 Bytes | |
| v1.2.0.tar.gz | 2017-03-01 | 100.3 kB | |
| v1.2.0.zip | 2017-03-01 | 129.6 kB | |
| Totals: 3 Items | 230.4 kB | 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:
:::js
<Trend data={[1, 2, 3]} />
This version allows you to pass an array of objects that contain the values:
:::js
<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.