proto-repl-charts.charts

Defines functions for displaying charts.

bar-chart

(bar-chart name series-map)(bar-chart name series-map options)
Displays a bar chart in a tab with the given name.

series-map is a map of series names to the values for the series. For example
the following map would display two sets of bars named 'alpha' and 'beta'.

{:alpha [1 2 3 4] :beta [10 20 30 40]}

Options can be any of the following:
* labels - a list of labels to give each value. The index of the label in the
list corresponds to the index of the values in the series.

custom-chart

(custom-chart name chart-config)
Displays a custom chart in a tab with the given name. [C3](http://c3js.org/)
is the charting library used. The chart config will be converted from Clojure
to a JavaScript object and passed to C3. It can be any configuration data C3
supports.

line-chart

(line-chart name series-map)(line-chart name series-map options)
Displays a line chart in a tab with the given name.

series-map is a map of series names to the values for the series. For example
the following map would display two lines named 'alpha' and 'beta' on the
same graph.

    {:alpha [1 2 3 4] :beta [10 20 30 40]}

Options can be any of the following:
* labels - a list of labels to give each value. The index of the label in the
list corresponds to the index of the values in the series.

scatter-chart

(scatter-chart name series)(scatter-chart name series options)
Displays a scatter chart in a tab with the given name.

series-map is a map of series names to the values for the series. For example
the following map would display two sets of points named 'alpha' and 'beta'.

{:alpha [1 2 3 4] :beta [10 20 30 40]}

Options can be any of the following:
* labels - a list of labels to give each value. The index of the label in the
list corresponds to the index of the values in the series.