I am looking to create a system which on signup will create a subdomain on my website for the users account area.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
I've got data with X values from 0 to 55. I would like to see these values as a custom text in tick labels. Ideally, I want to specify some callback, like
function tickLabel(tickValue) {
return "This is " + tickValue;
}
Is it possible?
Use something like:
ReplyDeletevar line1 = [['This is '.$value, $value], ...]
And call your plot as:
var plot1 = $.jqplot('chart1', [line1], {
title: 'Title of your plot',
series:[{renderer:$.jqplot.BarRenderer}],
axesDefaults: {
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: {
angle: -30,
fontSize: '10pt'
}
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer
}
}
});
I've found a solution.
ReplyDeletexaxis: {
tickRenderer: $.jqplot.AxisTickRenderer,
tickOptions: {
formatter: function(format, value) { return "This is " + value; }
}
}
Hey, I almost tweaked the renderer plugin to have the custom ticks implemented for the category axis. Tips For All, Your comment saved my life :-)
ReplyDeleteLove,
Kiran