open-nomad/ui/app/templates/components/stats-time-series.hbs
Michael Lange 9c73d03332 Use named-blocks and contextual components to reduce the responsibility of LineChart
Now chart primitives are partially applied by LineChart but the
invocations are left to the caller.
2021-02-24 18:58:01 -08:00

17 lines
400 B
Handlebars

<LineChart
@data={{@data}}
@xProp="timestamp"
@yProp="percent"
@chartClass={{@chartClass}}
@timeseries={{true}}
@title="Stats Time Series Chart"
@description={{this.description}}
@xScale={{this.xScale}}
@yScale={{this.yScale}}
@xFormat={{this.xFormat}}
@yFormat={{this.yFormat}}>
<:svg as |c|>
<c.Area @data={{@data}} @colorClass={{@chartClass}} />
</:svg>
</LineChart>