# valueScale

Spectrogram: `db` (the frames are decibels) or `linear` (magnitudes, converted with 20 · log10).

Canonical: https://chart.syidax.com/docs/options/valueScale/

<a id="definition"></a>

## 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](https://chart.syidax.com/docs/types/SpectrogramValueScale.md) — Type definition

<a id="example"></a>

## Configuration example

```javascript
// Register sy-spectrogram and create the element before configuring it.
chart.valueScale = "linear";
```

- [Spectrogram · Complete examples and API](https://chart.syidax.com/docs/components/spectrogram.md)

<a id="related"></a>

## Related documentation

A property with the same name may have different types and defaults across charts. When using a direct tag, follow that chart's documentation below.

- [Shared facade and direct tags](https://chart.syidax.com/docs/concepts.md)
- [sy-spectrogram](https://chart.syidax.com/docs/components/spectrogram.md#property-valueScale)
