label font

Specifies font options for a strip label.

Type: Object

Show Example:
jQuery

In the following example, the font options for the value axis strip labels are changed.

<div id="chartContainer" style="height:500px; max-width:700px; margin: 0 auto"></div>
var dataSource = [
    { month: "January", avgT: 9.8, minT: 4.1, maxT: 15.5, prec: 109 },
    { month: "February", avgT: 11.8, minT: 5.8, maxT: 17.8, prec: 104 },
    { month: "March", avgT: 13.4, minT: 7.2, maxT: 19.6, prec: 92 },
    { month: "April", avgT: 15.4, minT: 8.1, maxT: 22.8, prec: 30 },
    { month: "May", avgT: 18, minT: 10.3, maxT: 25.7, prec: 10 },
    { month: "June", avgT: 20.6, minT: 12.2, maxT: 29, prec: 2 },
    { month: "July", avgT: 22.2, minT: 13.2, maxT: 31.3, prec: 2 },
    { month: "August", avgT: 22.2, minT: 13.2, maxT: 31.1, prec: 1 },
    { month: "September", avgT: 21.2, minT: 12.4, maxT: 29.9, prec: 8 },
    { month: "October", avgT: 17.9, minT: 9.7, maxT: 26.1, prec: 24 },
    { month: "November", avgT: 12.9, minT: 6.2, maxT: 19.6, prec: 64 },
    { month: "December", avgT: 9.6, minT: 3.4, maxT: 15.7, prec: 76 }
];

$(function () {

    $("#chartContainer").dxPolarChart({
        dataSource: dataSource,
        series: {
            argumentField: "month",
            type: "line",
            valueField: "avgT"
        },
        valueAxis: {
            label: { visible: false },
            strips: [{
                startValue: 0,
                endValue: 10,
                color: "LightBlue ",
                label: { text: 'cold' }
            }, {
                startValue: 20,
                endValue: 30,
                color: "DarkSalmon ",
                label: { text: 'warm' }
            }],
            stripStyle: {
                label: {
                    font: {
                        size: 14,
                        color: 'indigo',
                        opacity: 0.85
                    }
                }
            }
        },
        title: {
            text: "Weather in Glendale, CA"
        },
        legend: { visible: false }
    });

});

color

Specifies the font color for a strip label.

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)

family

Specifies the font family for a strip label.

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

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

opacity

Specifies the font opacity for a strip label.

Type: Number
Default Value: undefined

size

Specifies the font size for a strip label.

Type: Number|String
Default Value: 12

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

weight

Specifies the font weight for the text displayed in strips.

Type: Number
Default Value: 400