Interface
ChartLookOptions
Look options of FerroChart.create and applyOptions (r25). Keys not
given keep their value.
Properties
| Name | Type | Description |
|---|---|---|
theme? | 'light' | 'dark' | ThemeObject | Color theme: |
preset? | 'sparkline' | Start from a set of options, then apply the other keys given:
|
priceAxis? | boolean | The price axis. Default |
timeAxis? | boolean | The time axis. Default |
grid? | boolean | {
horizontal?: boolean;
vertical?: boolean;
} | Grid lines. Default |
padding? | number | {
top?: number;
right?: number;
bottom?: number;
left?: number;
} | Space around the plot area, CSS px. Default 0. |
interaction? | boolean | {
pan?: boolean;
zoom?: boolean;
crosshair?: boolean;
} | Which gestures the chart takes; |
crosshairStyle? | {
vertical?: boolean;
horizontal?: boolean;
labels?: boolean;
dot?: CrosshairDot | null;
} | What the crosshair draws. Default: both lines and the labels, no dot. |
Declaration
export interface ChartLookOptions {
theme?: 'light' | 'dark' | ThemeObject;
preset?: 'sparkline';
priceAxis?: boolean;
timeAxis?: boolean;
grid?: boolean | {
horizontal?: boolean;
vertical?: boolean;
};
padding?: number | {
top?: number;
right?: number;
bottom?: number;
left?: number;
};
interaction?: boolean | {
pan?: boolean;
zoom?: boolean;
crosshair?: boolean;
};
crosshairStyle?: {
vertical?: boolean;
horizontal?: boolean;
labels?: boolean;
dot?: CrosshairDot | null;
};
}