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

Histogram / Time Series multiline tooltip support #561

Closed rjimenezda closed 5 years ago

rjimenezda commented 5 years ago

Branch chart:

master -> v2 -> histogram-clear -> histogram-tooltip

image

This PR adds support for the tooltipFormatter prop to return an array of strings, which renders them each on a line.

Added an example for this and updated the documentation.

I've also added some extra @Methods. One is kind of annoying, because it's a proxy to a prop, but it's a prop that's set on the time-series and we need to be able to acces from outside.

Also, the time series was lacking all the histogram methods, so you couldn't really programmatically get the selection, clear it etc. I've added the proxy methods