CartoDB / airship

A design library for building Location Intelligence applications.
https://carto.com/developers/airship/
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

Time series widget #539

Closed rjimenezda closed 5 years ago

rjimenezda commented 5 years ago

Fix #534

This PR adds a new component that composes a Histogram and adds time data and animation status support.

The time support simply means that the x-axis is properly labeled with time data. The histogram now supports an x-axis-formatter function prop.

We probably should have the same prop on the Time Series so that users can provide the proper formatter based on their data aggregation (full date, months, quarters...etc). I think this would be better than adopting a string pattern that other libs like d3-time-format or moment support.

The animation part is completely optional, and if the prop is not there, it should look like a regular histogram.

If the animation property is there:

I've tried to make it as compatible as possible with the brush.

timeseries

rjimenezda commented 5 years ago

Closing this PR in favor of the Bindings one which contains everything