I am not able to draw/fill vertical portion in my chart, like it is shown in this example: http://services.mbi.ucla.edu/jqplot/examples/draw-rectangles.html. As I know, x-axis should be numeric and in my graph I have x-axises are strings.
I draw my plot:
plot2 = $.jqplot('chartplot'+index, [s3], {
seriesDefaults: {
renderer :$.jqplot.BarRenderer,
pointLabels: { show: true },
rendererOptions: {shadow:false }
},
series: [{label:"Average Fu - "+single_legend_lbl+""}],
legend: {
show: true,
placement: 'insideGrid'
},
axesDefaults: {
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: { formatString: '%#d' }
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
ticks: ticks,
tickOptions: {
angle: -90,
fontSize: '10pt',
}
}
},
seriesColors: [bar_color],
canvasOverlay: {
show: true,
objects: [
{ rectangle: { xmin: 'Silver Fu', xmax: 'Light Green Fu', xminOffset: "0px", xmaxOffset: "0px", yminOffset: "0px", ymaxOffset: "0px",
color: "rgba(0, 200, 200, 0.3)", showTooltip: true, tooltipFormatString: "Holidays" } },
]
}
});
Attached/linked is my rendered graph and I want color my graph into three section as per line: my rendered graph