loadingIndicator font

Specifies font options for the loading indicator text.

Type: Object

Show Example:
jQuery

In this example, several font options of the loading indicator are changed.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var data = [
    { year: 2010, europe: 728, americas: 935, africa: 982 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1950, europe: 546, americas: 332, africa: 227 }
];

var dataSource = new DevExpress.data.DataSource({
    load: function (loadOptions) {
        var d = $.Deferred();
        setTimeout(function () {
            d.resolve(data);
        }, 3000);
        return d.promise();
    },
});

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            label: {
                visible: true,
                connector: { visible: true }
            }
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        loadingIndicator: {
            show: true,
            font: {
                color: 'forestgreen',
                family: 'Zapf-Chancery, cursive',
                opacity: 0.7,
                weight: 700,
                size: 16
            }
        }
    });
});

color

Specifies a color for the loading indicator text.

Type: String
Default Value: '#767676'

This option supports the following colors.

  • Hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • Predefined/cross-browser color names
  • Predefined SVG colors (not supported in Internet Explorer 8)
Show Example:
jQuery

In this example, the font color of the loading indicator is changed to dodgerblue.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var data = [
    { year: 2010, europe: 728, americas: 935, africa: 982 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1950, europe: 546, americas: 332, africa: 227 }
];

var dataSource = new DevExpress.data.DataSource({
    load: function (loadOptions) {
        var d = $.Deferred();
        setTimeout(function () {
            d.resolve(data);
        }, 3000);
        return d.promise();
    },
});

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            label: {
                visible: true,
                connector: { visible: true }
            }
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        loadingIndicator: {
            show: true,
            font: {
                color: 'dodgerblue'
            }
        }
    });
});

family

Specifies a font family for the loading indicator text.

Type: String
Default Value: undefined

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

Show Example:
jQuery

In this example, the font family of the loading indicator is changed.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var data = [
    { year: 2010, europe: 728, americas: 935, africa: 982 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1950, europe: 546, americas: 332, africa: 227 }
];

var dataSource = new DevExpress.data.DataSource({
    load: function (loadOptions) {
        var d = $.Deferred();
        setTimeout(function () {
            d.resolve(data);
        }, 3000);
        return d.promise();
    },
});

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            label: {
                visible: true,
                connector: { visible: true }
            }
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        loadingIndicator: {
            show: true,
            font: {
                family: 'Zapf-Chancery, cursive'
            }
        }
    });
});

opacity

Specifies a font opacity for the loading indicator text.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the font opacity of the loading indicator is changed to 0.5.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var data = [
    { year: 2010, europe: 728, americas: 935, africa: 982 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1950, europe: 546, americas: 332, africa: 227 }
];

var dataSource = new DevExpress.data.DataSource({
    load: function (loadOptions) {
        var d = $.Deferred();
        setTimeout(function () {
            d.resolve(data);
        }, 3000);
        return d.promise();
    },
});

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            label: {
                visible: true,
                connector: { visible: true }
            }
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        loadingIndicator: {
            show: true,
            font: {
                opacity: 0.5
            }
        }
    });
});

size

Specifies a font size for the loading indicator text.

Type: Number|String
Default Value: undefined

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

Show Example:
jQuery

In this example, the font size of the loading indicator is changed to 18.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var data = [
    { year: 2010, europe: 728, americas: 935, africa: 982 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1950, europe: 546, americas: 332, africa: 227 }
];

var dataSource = new DevExpress.data.DataSource({
    load: function (loadOptions) {
        var d = $.Deferred();
        setTimeout(function () {
            d.resolve(data);
        }, 3000);
        return d.promise();
    },
});

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            label: {
                visible: true,
                connector: { visible: true }
            }
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        loadingIndicator: {
            show: true,
            font: {
                size: 18
            }
        }
    });
});

weight

Specifies a font weight for the loading indicator text.

Type: Number
Default Value: undefined

Show Example:
jQuery

In this example, the font weight of the loading indicator is changed to 700.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var data = [
    { year: 2010, europe: 728, americas: 935, africa: 982 },
    { year: 2000, europe: 730, americas: 836, africa: 797 },
    { year: 1990, europe: 721, americas: 721, africa: 623 },
    { year: 1980, europe: 694, americas: 614, africa: 471 },
    { year: 1970, europe: 656, americas: 513, africa: 361 },
    { year: 1960, europe: 605, americas: 417, africa: 283 },
    { year: 1950, europe: 546, americas: 332, africa: 227 }
];

var dataSource = new DevExpress.data.DataSource({
    load: function (loadOptions) {
        var d = $.Deferred();
        setTimeout(function () {
            d.resolve(data);
        }, 3000);
        return d.promise();
    },
});

$(function () {
    $("#chartContainer").dxChart({
        dataSource: dataSource,
        commonSeriesSettings: {
            argumentField: 'year',
            label: {
                visible: true,
                connector: { visible: true }
            }
        },
        series: [
            { valueField: 'europe', name: 'Europe' },
            { valueField: 'americas', name: 'Americas' },
            { valueField: 'africa', name: 'Africa' }
        ],
        loadingIndicator: {
            show: true,
            font: {
                weight: 700
            }
        }
    });
});