I am using jqPlot to draw some simple line charts and it works great in Chrome. But in every version of IE (including 9) the jqPlot-plugins are not working. I've tried the pointLabels, dateAxisRenderer and highlighter plugin but they don't have any effect.
My code is pretty much the same as in the examples on the jqPlot site. The only difference I am aware of is that I create the div-element placeholder for the chart dynamically via JavaScript.
That's the code I use to create the chart:
scurve_chart = $.jqplot('cv', [line1], {
title: 'distribute costs',
seriesDefaults: {
showMarker:false,
pointLabels: { show: true, location: 's', ypadding: 3 }
},
axes: {
xaxis: {
min: 0.5,
tickOptions: {
formatString: '%.0f'
}
},
yaxis: {
max: Math.round(max_value_to_dist * 1.10),
min: 0,
tickOptions: {
formatString: '%.0f'
}
}
}
});
I use the latest version of jqplot and jquery-1.4.1
//update: Solution
The problem was that I included all plugin-files directly from the jqplot homepage. For example:
<script type="text/javascript" src="http://www.jqplot.com/src/plugins/jqplot.dateAxisRenderer.min.js"></script>
It seems like IE does not like it that way.