API REFERENCE
valueScale
Spectrogram: db (the frames are decibels) or linear (magnitudes, converted with 20 · log10).
Definition
| Item | Value |
|---|---|
| JavaScript property | valueScale |
| HTML attribute | value-scale |
| Type | SpectrogramValueScale |
| Default | undefined |
| Allowed values | linear, db |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
- SpectrogramValueScale
Type definition
Configuration example
// Register sy-spectrogram and create the element before configuring it.
chart.valueScale = "linear";