strips label

    An object that defines the label configuration options of a strip.

    Type: Object

    A strip label represents descriptive information on a strip. It often represents a strip's title. To set label options for an individual strip, define the label object. If you need to set similar values for labels in all strips, use the commonAxisSettings | stripStyle | label configuration object. It exposes the properties that can be specified for labels on all strips simultaneously. Note that the values specified for a strip individually (in the valueAxis | strips | strip | label object) override the values that are specified for all axes (in the commonAxisSettings | stripStyle | label object).

    Show Example:
    jQuery

    In the following example, the value axis strips have labels.

    <div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
    var dataSource = [
        { year: 1950, europe: 546, americas: 332, africa: 227 },
        { year: 2050, europe: 650, americas: 1231, africa: 1937 },
        { year: 2040, europe: 680, americas: 1178, africa: 1665 },
        { year: 2030, europe: 704, americas: 1110, africa: 1416 },
        { year: 2020, europe: 721, americas: 1027, africa: 1189 },
        { 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 }
    ];
    
    $(function () {
        $("#chartContainer").dxChart({
            dataSource: dataSource,
            commonSeriesSettings: {
                argumentField: 'year'
            },
            series: [
                { valueField: 'europe', name: 'Europe' },
                { valueField: 'americas', name: 'Americas' },
                { valueField: 'africa', name: 'Africa' }
            ],
            valueAxis: {
                strips: [
                    {
                        startValue: 200, endValue: 250, color: 'rgba(68, 100, 213, 0.2)',
                        label: { text: 'Lowest', horizontalAlignment: 'right' }
                    },
                    { startValue: 700, endValue: 900, color: 'rgba(68, 100, 213, 0.2)' },
                    {
                        startValue: 1900, endValue: 2000, color: 'rgba(68, 100, 213, 0.2)',
                        label: { text: 'Highest' }
                    }
                ]
            }
        });
    });

    font

    Specifies font options for a strip label.

    Type: Object

    horizontalAlignment

    Specifies the label's position on a strip.

    Type: String
    Default Value: 'left'
    Accepted Values: 'right' | 'center' | 'left'

    text

    Specifies the text displayed in a strip.

    Type: String
    Default Value: undefined

    verticalAlignment

    Specifies a label's position on a strip.

    Type: String
    Default Value: 'center'
    Accepted Values: 'top' | 'center' | 'bottom'