Interface IChartOptions

Index

Properties

Properties

optional public enableDpiScaling?: boolean

Whether to render at different DPI depending upon the device. Enabled by default.

optional public grid?: IGridOptions

optional public horizontalLines?: IHorizontalLine[]

optional public interpolation?: string

One of: 'bezier', 'linear', 'step'

optional public labels?: ILabelOptions

optional public maxDataSetLength?: number

optional public maxValue?: number

Specify to clamp the upper y-axis to a given value.

optional public maxValueScale?: number

Allows proportional padding to be added above the chart. for 10% padding, specify 1.1.

optional public millisPerPixel?: number

Sets the speed at which the chart pans by.

optional public minValue?: number

Specify to clamp the lower y-axis to a given value.

optional public scaleSmoothing?: number

Controls the rate at which y-value zoom animation occurs.

optional public timestampFormatter?: (date: Date) => string

Optional function to format time stamps for bottom of chart. You may use SmoothieChart.timeFormatter, or your own/

optional public yMaxFormatter?: (max: number, precision: number) => string

optional public yMinFormatter?: (min: number, precision: number) => string

optional public yRangeFunction?: (range: "smoothie".IRange) => "smoothie".IRange