Unable to get xaxis values of Bar Chart using jqplot -
function setupbarchartfilter(id, listdata) { if (listdata.length > 0) { // prepare data jqplot refinementcount = []; refinementname = []; refinementdata = []; (var = 0; < listdata.length; i++) { var filter = listdata[i]; var name = filter.refinementname.slice(0, 20); var count = filter.refinementcount; var item = [name, count]; refinementcount.push(count); refinementname.push(name); refinementdata.push(item); } ticks = []; ticks.push = refinementname; // call jqplot $.jqplot.config.enableplugins = true; var plot = $.jqplot(id, [refinementcount], { // animate if we're not using excanvas (not in ie 7 or ie 8).. seriescolors: ['#0072c6', '#73c774', '#c7754c', '#17bdb8', '#00749f'], animate: !$.jqplot.use_excanvas, seriesdefaults: { renderer: $.jqplot.barrenderer, rendereroptions: { // set varybarcolor tru use custom colors on bars. varybarcolor: true, barwidth: 15, barpadding: 4, barmargin: 5, }, pointlabels: { show: true }, }, axes: { xaxis: { renderer: $.jqplot.categoryaxisrenderer, ticks: refinementname, tickrenderer: $.jqplot.canvasaxistickrenderer , tickoptions: { fontfamily: 'georgia', fontsize: '8pt', angle: -40, }, }, }, highlighter: { show: false } }); } }
i bar chart count values. not able see ticks in xaxis. when pass refinementcount in here var plot = $.jqplot(id, [refinementcount], can see bars. , using ticks: refinementname, xaxis values names. overwrite each other, don't appear per bar chart. know how bar chart values using jqplot.
Comments
Post a Comment