react-trend v1.2.0 Release Notes

Release Date: 2017-03-01 // about 7 years ago
  • 👌 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.