Chart ===== A charting service powered by gnuplot. .. toctree:: :maxdepth: 2 :titlesonly: :caption: RPC Categories RPCS ---- .. function:: Chart.defaultOptions() Get the default options for the :func:`Chart.draw` RPC. **Returns:** ``Object`` (`Object `__) - the default draw options .. function:: 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 more - ``title: String?`` (`String `__) - title to show on the graph - ``width: Number?`` (`Number `__) - width of the returned image - ``height: Number?`` (`Number `__) - height of the returned image - ``labels: List?`` (`List `__ | `String `__) - labels for each line - ``types: List?`` (`List `__ | `LineType `__) - types for each line - ``xRange: List?`` (`List `__ | `Number `__) - range of X values to graph - ``yRange: List?`` (`List `__ | `Number `__) - range of Y values to graph - ``xLabel: String?`` (`String `__) - label on the X axis - ``yLabel: String?`` (`String `__) - label on the Y axis - ``xTicks: Number?`` (`Number `__) - tick interval for the X axis - ``isCategorical: Boolean?`` (`Boolean `__) - true to enable categorical mode - ``smooth: Boolean?`` (`Boolean `__) - true to enable smoothing - ``grid: Enum?`` (`Enum `__) - grid type to use - ``isTimeSeries: Boolean?`` (`Boolean `__) - true to enable time series mode - ``timeInputFormat: TimeFormat?`` (`TimeFormat `__) - input time format for time series data - ``timeDisplayFormat: TimeFormat?`` (`TimeFormat `__) - output time format for time series data - ``logscale: List?`` (`List `__) - logscale settings to use - ``fontSize: BoundedInteger<1, 256>?`` (`BoundedInteger `__) - font size to use for the title and axis labels (default 10). - ``legendLocation: LegendLocation?`` (`LegendLocation `__) - the location of the legend - ``lineWidth: BoundedInteger<1, 32>?`` (`BoundedInteger `__) - the width of the lines to draw **Returns:** ``Image`` (`Image `__) - the generated chart