title font

Specifies font options for the title.

Type: Object

Show Example:
jQuery

In this example, several font options of the title 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: 'Bright',
        title: {
            text: 'Average Speed by Racer, km/h',
            font: {
                color: 'forestgreen',
                size: 23,
                family: "'Helvetica Neue', 'Arial'",
                weight: 200
            }
        }
    });
});

color

Specifies a font color for the title.

Type: String
Default Value: '#232323'

This option supports the following colors.

Show Example:
jQuery

In this example, the title text is colored in 'mediumvioletred'.

<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: 'Violet',
        title: {
            text: 'Average Speed by Racer, km/h',
            font: {
                color: 'mediumvioletred'
            }
        }
    });
});

family

Specifies a font family for the title.

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 title 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: 'Bright',
        title: {
            text: 'Average Speed by Racer, km/h',
            font: {
                family: 'Trebuchet MS'
            }
        }
    });
});

size

Specifies a font size for the title.

Type: Number|String
Default Value: 18

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

Show Example:
jQuery

In this example, the size of the title text is set to 24.

<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, km/h',
            font: {
                size: 24
            }
        }
    });
});

weight

Specifies a font weight for the title.

Type: Number
Default Value: 400

Show Example:
jQuery

In this example, the font weight of the title text is changed to 700.

<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, km/h',
            font: {
                weight: 700
            }
        }
    });
});