lib/models/plot-table-data-params.model.ts
Options and functions to apply when converting plot data to table data.
Properties |
|
addLabel |
addLabel:
|
Type : boolean
|
Optional |
Whether to add the plot label to data table |
hideX |
hideX:
|
Type : boolean
|
Optional |
Whether to hide X values |
hideY |
hideY:
|
Type : boolean
|
Optional |
Whether to hide Y values |
labelTransform |
labelTransform:
|
Type : function
|
Optional |
Function to apply to the plot label |
xLabelTransform |
xLabelTransform:
|
Type : function
|
Optional |
Function to apply to the X label |
xValueFormat |
xValueFormat:
|
Type : function
|
Optional |
Function to apply to X values |
yLabelTransform |
yLabelTransform:
|
Type : function
|
Optional |
Function to apply to the Y label |
yValueFormat |
yValueFormat:
|
Type : function
|
Optional |
Function to apply to Y values |
import {PlotData} from 'plotly.js';
/**
* Options and functions to apply when converting plot data to table data.
*/
export interface PlotTableDataParams {
/** Whether to add the plot label to data table */
addLabel?: boolean;
/** Whether to hide X values */
hideX?: boolean;
/** Whether to hide Y values */
hideY?: boolean;
/** Function to apply to the plot label */
labelTransform?: (label: string) => string;
/** Function to apply to the X label */
xLabelTransform?: (label: string, data: Partial<PlotData>) => string;
/** Function to apply to X values */
xValueFormat?: (x: number | string) => number | string;
/** Function to apply to the Y label */
yLabelTransform?: (label: string, data: Partial<PlotData>) => string;
/** Function to apply to Y values */
yValueFormat?: (y: number | string) => number | string;
}