Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
how to change the font size of axis lable?
posted

Hi,

In the following sample code, how do we set the value of LableTextStyle? Can we use this to change the font size of the axis lable?

Thanks,

 

//    Initialization
$(".selector").igDataChart({
        axes: [{
            name: "xAxis",
            type: "numericX",
            labelTextStyle: "chartLabel"
        }]
    });
//    Get
var axes = $(".selector").igDataChart("option", "axes");
axes[0].labelTextStyle;
//    Set
$(".selector").igDataChart("option", "axes", blue
        [{
            name: "xAxis",
            type: "numericX",
            labelTextStyle: "chartLabel"
        }]
    );
  • 30692
    Verified Answer
    Offline posted

    by default its going to use whatever font would be applied to the container of the chart. But you can use a css font string in labelTextSyle to override the font used at the individual axis level.

    for example: "italic bold 12pt/14pt Times, serif"