title font

Specifies font options for the title.

Type: Object

Show Example:
jQuery

In this example, title font options 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 font color is blue.

<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: 'blue'
            }
        }
    });
});

family

Specifies a font family for the title.

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

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

Show Example:
jQuery

In this example, the title font family 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'
            }
        }
    });
});

opacity

Specifies font opacity for the title.

Type: Number
Default Value: undefined

size

Specifies a font size for the title.

Type: Number|String
Default Value: 28

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

Show Example:
jQuery

In this example, the title font size is increased to 25 pixels.

<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: 25
            }
        }
    });
});

weight

Specifies a font weight for the title.

Type: Number
Default Value: 200

Show Example:
jQuery

In this example, the weight option of the title font is changed to 400.

<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: 400
            }
        }
    });
});