subtitle font

Specifies font options for the subtitle.

Type: Object

Show Example:
jQuery

In this example, several font options of the subtitle text are changed.

<div id="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: 0,
        endValue: 200,
        values: [121.4, 135.4, 110.9, 141.1, 127.5],
        palette: 'Pastel',
        title: {
            text: 'Average Speed by Racer',
            subtitle: {
                text: '(estimated in km/h)',
                font: {
                    color: 'darkgray',
                    family: 'Segoe UI',
                    size: 11,
                    weight: 100
                }
            }
        }
    });
});

color

Specifies font color for the subtitle.

Type: String
Default Value: '#232323'

This option supports the following colors.

Show Example:
jQuery

In this example, the subtitle text is colored in 'lightsteelblue'.

<div id="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: 0,
        endValue: 200,
        values: [121.4, 135.4, 110.9, 141.1, 127.5],
        palette: 'Soft',
        title: {
            text: 'Average Speed by Racer',
            subtitle: {
                text: '(estimated in km/h)',
                font: {
                    color: 'lightsteelblue'
                }
            }
        }
    });
});

family

Specifies a font family for the subtitle.

Type: String
Default Value: ''Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana'

For details on acceptable values, refer to the Font family article.

Show Example:
jQuery

In this example, the font family of the subtitle text is changed.

<div id="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: 0,
        endValue: 200,
        values: [121.4, 135.4, 110.9, 141.1, 127.5],
        palette: 'Harmony Light',
        title: {
            text: 'Average Speed by Racer',
            subtitle: {
                text: '(estimated in km/h)',
                font: {
                    family: 'MS Georgia'
                }
            }
        }
    });
});

opacity

Specifies font opacity for the subtitle.

Type: Number
Default Value: 1

size

Specifies a font size for the subtitle.

Type: Number|String
Default Value: 16

For details on acceptable values, refer to the Font size article.

Show Example:
jQuery

In this example, the subtitle font size is changed to 12.

<div id="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: 0,
        endValue: 200,
        values: [121.4, 135.4, 110.9, 141.1, 127.5],
        palette: 'Bright',
        title: {
            text: 'Average Speed by Racer',
            subtitle: {
                text: '(estimated in km/h)',
                font: {
                    size: 12
                }
            }
        }
    });
});

weight

Specifies the font weight for the subtitle.

Type: Number
Default Value: 200

Show Example:
jQuery

In this example, the font weight of the subtitle text is changed to 100.

<div id="barGaugeContainer" style="height:400px;max-width:500px;margin:0px auto"></div>
$(function () {
    $("#barGaugeContainer").dxBarGauge({
        startValue: 0,
        endValue: 200,
        values: [121.4, 135.4, 110.9, 141.1, 127.5],
        palette: 'Default',
        title: {
            text: 'Average Speed by Racer',
            subtitle: {
                text: '(estimated in km/h)',
                font: {
                    weight: 100
                }
            }
        }
    });
});