Chart
A charting service powered by gnuplot.
RPCS
- Chart.defaultOptions()
Get the default options for the
Chart.draw()
RPC.Returns:
Object
(Object) - the default draw options
- Chart.draw(lines: List, options: Object?)
Create charts and histograms from data.
Arguments:
lines: List
(List) - a single line or list of lines. Each line should be[[x1,y1], [x2,y2], ...]
.options: Object?
(Object) - Configuration for graph title, axes, and moretitle: String?
(String) - title to show on the graphwidth: Number?
(Number) - width of the returned imageheight: Number?
(Number) - height of the returned imagelabels: List<String>?
(List | String) - labels for each linetypes: List<LineType>?
(List | LineType) - types for each linexRange: List<Number>?
(List | Number) - range of X values to graphyRange: List<Number>?
(List | Number) - range of Y values to graphxLabel: String?
(String) - label on the X axisyLabel: String?
(String) - label on the Y axisxTicks: Number?
(Number) - tick interval for the X axisisCategorical: Boolean?
(Boolean) - true to enable categorical modesmooth: Boolean?
(Boolean) - true to enable smoothinggrid: Enum<line, dot>?
(Enum) - grid type to useisTimeSeries: Boolean?
(Boolean) - true to enable time series modetimeInputFormat: TimeFormat?
(TimeFormat) - input time format for time series datatimeDisplayFormat: TimeFormat?
(TimeFormat) - output time format for time series datalogscale: List?
(List) - logscale settings to usefontSize: BoundedInteger<1, 256>?
(BoundedInteger) - font size to use for the title and axis labels (default 10).legendLocation: LegendLocation?
(LegendLocation) - the location of the legendlineWidth: BoundedInteger<1, 32>?
(BoundedInteger) - the width of the lines to draw
Returns:
Image
(Image) - the generated chart