Module to represent a GenericChart
Type | Description |
Function or value | Description |
Full Usage:
addConfig config gChart
Parameters:
Config
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
addDisplayOptions displayOpts gChart
Parameters:
DisplayOptions
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
addLayout layout gChart
Parameters:
Layout
gChart : GenericChart
Returns: GenericChart
|
|
|
|
|
|
Full Usage:
existsTrace predicate gChart
Parameters:
Trace -> bool
gChart : GenericChart
Returns: bool
|
|
|
|
|
|
|
|
|
|
|
returns a single TraceID (when all traces of the charts are of the same type), or traceID.Multi if the chart contains traces of multiple different types
|
|
|
|
|
Full Usage:
mapConfig f gChart
Parameters:
Config -> 'a
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
mapDisplayOptions f gChart
Parameters:
DisplayOptions -> 'a8
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
mapLayout f gChart
Parameters:
Layout -> 'a8
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
mapTrace f gChart
Parameters:
Trace -> Trace
gChart : GenericChart
Returns: GenericChart
|
Creates a new GenericChart whose traces are the results of applying the given function to each of the trace of the GenericChart.
|
Full Usage:
mapiTrace f gChart
Parameters:
int -> Trace -> Trace
gChart : GenericChart
Returns: GenericChart
|
Creates a new GenericChart whose traces are the results of applying the given function to each of the trace of the GenericChart. The integer index passed to the function indicates the index (from 0) of element being transformed.
|
Full Usage:
ofTraceObject useDefaults trace
Parameters:
bool
trace : Trace
Returns: GenericChart
|
Converts from a trace object and a layout object into GenericChart. If useDefaults = true, also sets the default Chart properties found in `Defaults`
|
Full Usage:
ofTraceObjects useDefaults traces
Parameters:
bool
traces : Trace list
Returns: GenericChart
|
Converts from a list of trace objects and a layout object into GenericChart. If useDefaults = true, also sets the default Chart properties found in `Defaults`
|
Full Usage:
setConfig config gChart
Parameters:
Config
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
setDisplayOptions displayOpts gChart
Parameters:
DisplayOptions
gChart : GenericChart
Returns: GenericChart
|
|
Full Usage:
setLayout layout gChart
Parameters:
Layout
gChart : GenericChart
Returns: GenericChart
|
|
|
|
|
|
|
|
|
|
Full Usage:
toFigureJson gChart
Parameters:
GenericChart
-
the chart to serialize
Returns: string
|
Serializes a GenericChart to a JSON string, representing the data and layout of the GenericChart: { "data": [ -serialized traces array- ] , "layout": { -serialized layout object- } , "frames": [ -empty array, not supported yet, legacy stuff- ] }
|
Full Usage:
toJson gChart
Parameters:
GenericChart
-
the chart to serialize
Returns: string
|
Serializes a GenericChart to a JSON string, representing the data, layout and config of the GenericChart: { "data": [ -serialized traces array- ] , "layout": { -serialized layout object- } , "config": { -serialized config object- } }
|
Full Usage:
tryGetLayoutSize gChart
Parameters:
GenericChart
Returns: int option * int option
|
Returns a tuple containing the width and height of a GenericChart's layout if the property is set, otherwise returns None
|