opendatasoft / ods-widgets

Components to easily build visualizations and interfaces from a data API.
MIT License
27 stars 11 forks source link

ability to define multiple series based on different datasets to a chart in a simple way #27

Open Amli opened 9 years ago

Amli commented 9 years ago
    <ods-dataset-context context="hurricanes,killings" hurricanes-domain="public.opendatasoft.com" hurricanes-dataset="hurricane-tracks-1851-20071" killings-dataset="killings-by-law-enforcement-officers-in-the-usa" killings-domain="public.opendatasoft.com">
        <ods-highcharts>
                <ods-chart-serie context="hurricanes" field-x="track_date" chart-type="line" timescale="year" function-y="COUNT"></ods-chart-serie>
                <ods-chart-serie context="killings" field-x="date" chart-type="line" timescale="year" function-y="COUNT"></ods-chart-serie>
        </ods-highcharts>
    </ods-dataset-context>

this should allow for complex charts to be displayed and manipulated from other widgets. superseeds #7

richterb commented 9 years ago

Two side remarks/questions:

<ods-highcharts>
    <ods-chart-serie context="hurricanes" field-x="track_date" chart-type="line" timescale="year" function-y="COUNT"></ods-chart-serie>
</ods-highcharts>

is the same as

<ods-highcharts context="hurricanes" field-x="track_date" chart-type="line" timescale="year" function-y="COUNT"></ods-highcharts>
richterb commented 9 years ago

(note that in my opinion the transparent merge would be ideal, as it doesn't require us - or the user - to add another level of concepts that doesn't bring any end-user benefit)

Amli commented 9 years ago