Search code examples
flot

Flot: Format Tick Labels


How can I format the axis/tick labels labels ?

What if I need to change the font-style and font-size ?

I referred to the following question but was unsuccessful:

Tickformatter not performing as expected in latest version of Flot

Please Help !!!

Thnx.


Solution

  • I used the following:

    CSS File/SCSS File

    #graph_label .tickLabel{
    
        font-size: 50%;
     }
    

    Index.html or place where you are plotting the graph area

    $.plot($("graph_label"), [dataArrayReference], options);
    

    PS: I am using Flot Version prior to 0.8.1 so I dont have any idea about how latest version would work