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="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        rangeContainer: { backgroundColor: 'burlywood' },
        scale: {
            startValue: 0,
            endValue: 1000
        },
        value: 750,
        title: {
            text: 'Fan Speed',
            subtitle: {
                text: '(in rotations per minute)',
                font: {
                    family: 'Zapf-Chancery, cursive',
                    weight: 400,
                    color: 'darkgray',
                    size: 12
                }
            }
        }
    });
})

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 font color is changed to darkcyan.

<div id="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        rangeContainer: { backgroundColor: 'burlywood' },
        scale: {
            startValue: 0,
            endValue: 1000
        },
        value: 750,
        title: {
            text: 'Fan Speed',
            subtitle: {
                text: '(in rotations per minute)',
                font: {
                    color: 'darkcyan'
                }
            }
        }
    });
})

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="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        rangeContainer: { backgroundColor: 'burlywood' },
        scale: {
            startValue: 0,
            endValue: 1000
        },
        value: 750,
        title: {
            text: 'Fan Speed',
            subtitle: {
                text: '(in rotations per minute)',
                font: {
                    family: 'Zapf-Chancery, cursive'
                }
            }
        }
    });
})

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="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        rangeContainer: { backgroundColor: 'burlywood' },
        scale: {
            startValue: 0,
            endValue: 1000
        },
        value: 750,
        title: {
            text: 'Fan Speed',
            subtitle: {
                text: '(in rotations per minute)',
                font: {
                    size: 12
                }
            }
        }
    });
})

weight

Specifies the font weight for the subtitle.

Type: Number
Default Value: 200

Show Example:
jQuery

In this example, the subtitle font weight is changed to 700.

<div id="circularGaugeContainer" style="height:400px;max-width:400px;margin:0px auto"></div>
$(function () {
    $('#circularGaugeContainer').dxCircularGauge({
        rangeContainer: { backgroundColor: 'burlywood' },
        scale: {
            startValue: 0,
            endValue: 1000
        },
        value: 750,
        title: {
            text: 'Fan Speed',
            subtitle: {
                text: '(in rotations per minute)',
                font: {
                    weight: 700
                }
            }
        }
    });
})