javascript - Is it possible to change color of axis labels and format them jsxgraph? -


i created ticks using following code:

xticks=plot.create('ticks',[xaxis, 2]); 

is possible change color of labels , format label values (like adding custom string)?

xticks.label.setattribute({strokecolor:"red"}) doesn't work.

thank you.

the sub-object label not work tick labels, since there more 1 label. 1 can change visual appearance of labels providing label sub-attribute.

xaxis = board.create('axis', [[0,0],[1,0]]); xaxis.removeallticks(); xticks = board.create('ticks',[xaxis, 2], {     drawlabels: true,     strokecolor: 'red',     label: {         offset: [-4, -15],         strokecolor: 'blue'     } });    

another possibility provide same information ticks sub-attribute:

xaxis = board.create('axis', [[0,0],[1,0]], {             ticks: {                 drawlabels: true,                 strokecolor: 'red',                 label: {                     offset: [-4, -15],                     strokecolor: 'blue'                 }             }         });    

sorry late answer.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -