Download Latest Version v1.2.4.tar.gz (165.1 kB)
Email in envelope

Get an email when there's a new version of React Trend

Home / v1.2.0
Name Modified Size InfoDownloads / 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.

Source: README.md, updated 2017-03-01