graph()
A graph with an axis of its own, at most 8 per script, each with up to 8 series.axis: 'category': keys are names ('Asia','14:00'), shown in the order first set.axis: 'number'(the default): keys are numbers, spaced by value (30for an RSI of 30).axis: 'time': keys are times, spaced by time.
GraphSeries
One series of a graph: a value per key on the graph’s axis. Setting a key again replaces its value; a series holds at most 1,000 keys.(key: K, value: number, color?: Color | null): void
The value at
key, optionally in its own colour. na keeps the key with no value drawn.(key: K): void
(): void
Graph
(title: string, options?: { color?: Color | null; base?: number }): GraphSeries<K>
Bars from
base (default 0) to each value. Several bar series side by side group their bars per key.(title: string, options?: { color?: Color | null; width?: LineWidth; style?: LineStyle }): GraphSeries<K>
A line through the values, in key order.
(title: string, options?: { color?: Color | null; size?: number }): GraphSeries<K>
A dot at each value,
size 1 to 12 pixels (default 3).GraphOptions
'percent'
'percent': values print with a % sign. Set the values in percent.number
Decimal places for values.