File

lib/models/default-plot-options.model.ts

Description

Plotly config and layout options.

Index

Properties

Properties

config
config: PlotlyConfig
Type : PlotlyConfig
Optional

Plotly config

layout
layout: PlotlyLayout
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;
}

results matching ""

    No results matching ""