Quartz / Chartbuilder

A front-end charting application that facilitates easy creation of simple beautiful charts
http://quartz.github.io/Chartbuilder
MIT License
2.1k stars 354 forks source link

Allows you to define a timezone of the data and choose how it's displayed #222

Closed yanofsky closed 8 years ago

yanofsky commented 8 years ago

rebased to allow for merge

This is a feature that is only really relevant if you're drawing your charts on the fly like we are at Quartz.

It allows the chart creator to specify the timezone of time series data if it is not otherwise contained in the input and also specify if a person viewing the chart should see the timestamps as if that person is in the timezone of the data or if that person is in their own timezone.

For instance, a chart creator can decide that stock market data should always be shown with timestamps on New York time. A chart creator could also also decide that twitter trend data should be shown in the timezone of the person looking at the chart: something that spiked at 12pm in New York will display as spiking at 9am if viewed in Los Angeles.

it's also worth pointing out that this feature does not play nice with UTC offsets that aren't whole hours. e.g. Iran's +03:30, Nepal's +05:45, and India's +05:30