jquery - jQplot Multiple Series Duplicating X Axis Labels -
i getting rather frustrated jqplot. can see in image, if plot single series it's spot on. add second series, same date on x axis, duplicates date label.
i wondering how can prevent duplicating label on x axis, if date there form series 1, doesn't need display label again series 2.
the function makes plots below:
$.fn.plotchart = function(div,plots,ystring){ ystring = (typeof ystring == "undefined") ? '£%d' : ystring; var plot1 = $.jqplot(div,plots,{ highlighter: { show: true, tooltipaxes: 'both' }, seriesdefaults:{ rendereroptions: {filltozero: true}, }, axesdefaults:{ tickrenderer: $.jqplot.canvasaxistickrenderer, }, legend: { show: true, placement: 'outsidegrid' }, axes:{ xaxis:{ renderer: $.jqplot.dateaxisrenderer, tickoptions:{ formatstring:'%d/%m/%y', angle:30 }, tickinterval:'5 days' }, yaxis:{ tickoptions: {formatstring: ystring } } } }); }
Comments
Post a Comment