YellowTugboat / monte

A visualization framework for D3.js and SVG. Ships with prebuilt charts and components.
http://montejs.com
MIT License
6 stars 1 forks source link

Revise input data format #14

Open kbuhrer opened 7 years ago

kbuhrer commented 7 years ago

The majority of input data is in the form of an array, but there are cases (such as Gauges) where the input is an object. Using objects has the advantage of allowing metadata and additional configuration information. This allows for greater flexibility in the future without having to rework the scheme.

In most charts most datums can contain a css field, but that isn't possible for the base data. Other information such as "label", "source", "collection date", etc... could also be useful in the data object.

The data object should be capable of being serialized as a JSON object to avoid having code perform transformations. The only required actions by a user should be using *Prop options to map the fields for chart consumption.

Tasks