问题描述:

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.

网友答案:

If you're using 0.8, just override .flot-tick-label in your stylesheet. You can get more specific via the flot-[x|y]-axis classes.

See the customizing the axes section of the docs for more info.

网友答案:

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

相关阅读:
Top