Skip to content
This repository was archived by the owner on Jun 2, 2019. It is now read-only.

v1.2.0

Choose a tag to compare

@joshwcomeau joshwcomeau released this 01 Mar 20:30
· 15 commits to master since this release

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.