lib/models/default-plot-options.model.ts
Plotly config and layout options.
Properties |
config |
config:
|
Type : PlotlyConfig
|
Optional |
Plotly config |
layout |
layout:
|
Type : PlotlyLayout
|
Optional |
Plotly layout |
import {PlotlyConfig, PlotlyLayout} from '@ghsc/nshmp-utils-ts/libs/plotly';
/**
* The default plot options.
*/
export interface DefaultPlotOptions {
/** Plot id */
id: string;
/** Plot title */
title: string;
/** X label */
xLabel: string;
/** Y label */
yLabel: string;
/** Plot config and layout options for mobile devices */
mobileOptions?: PlotOptions;
/** Plot config and layout options */
options?: PlotOptions;
/** Breapoint to use mobile settings */
panelBreakpoint?: number;
}
/**
* Plotly config and layout options.
*/
export interface PlotOptions {
/** Plotly config */
config?: PlotlyConfig;
/** Plotly layout */
layout?: PlotlyLayout;
}