Internet explorer 8 某些jqplot渲染器在IE8中不工作
我有一个基于Spring的webapp,我使用jqplot将json响应数据呈现到图形中。 在IE8中运行应用程序时存在一些特定问题,请注意,相同的实现在IE9中工作良好。 这些具体问题是-Internet explorer 8 某些jqplot渲染器在IE8中不工作,internet-explorer-8,jqplot,Internet Explorer 8,Jqplot,我有一个基于Spring的webapp,我使用jqplot将json响应数据呈现到图形中。 在IE8中运行应用程序时存在一些特定问题,请注意,相同的实现在IE9中工作良好。 这些具体问题是- 即使在添加点标签插件文件后,点标签也不会显示在IE8中 highlighter工具提示实现即使在添加highlighter插件文件后也无法在IE8中工作 增强的图例渲染器功能-切换,数字列不工作 当列表只有一个值时,条形图不显示条形图[但显示记号,图例] 设置不工作的动画 曲线不是通过平滑选项形成的,而是
- 即使在添加点标签插件文件后,点标签也不会显示在IE8中
- highlighter工具提示实现即使在添加highlighter插件文件后也无法在IE8中工作
- 增强的图例渲染器功能-切换,数字列不工作
- 当列表只有一个值时,条形图不显示条形图[但显示记号,图例]
- 设置不工作的动画
- 曲线不是通过平滑选项形成的,而是直线
包括插件-
"plugins/jquery.min.js",
"plugins/jquery.min.js",
"plugins/jquery.jqplot.min.js",
"plugins/jqplot.barRenderer.min.js",
"plugins/jqplot.categoryAxisRenderer.min.js",
"plugins/jqplot.pointLabels.min.js",
"plugins/jqplot.pieRenderer.min.js",
"plugins/jqplot.donutRenderer.min.js",
"plugins/jqplot.dateAxisRenderer.js",
"plugins/jqplot.canvasTextRenderer.js",
"plugins/jqplot.enhancedLegendRenderer.min.js",
"plugins/jqplot.highlighter.min.js",
"plugins/jqplot.canvasAxisTickRenderer.js",
"plugins/jqplot.dateAxisRenderer.js",
"css/jquery.jqplot.min.css",
"plugins/jquery_ui/ui/themes/smoothness/jquery-ui.css",
"jquery.jqplot.css"
使用的图形渲染器:仅条形图、直线图、饼图
正在my impltn中设置的示例渲染器选项对象-
r={
/*constant field - for the default theme based colors specified in the component's 'var' file*/
seriesColors: seriesColors,
seriesDefaults:{
/* r.seriesDefaults.renderer
* variable field - depending on the dashbard type and graph type asked for*/
renderer:$.jqplot.BarRenderer,
/* r.seriesDefaults.rendererOptions
* variable field - depending on the dashbard type and graph type asked for*/
rendererOptions: {
fillToZero: true,
barMargin : 50,
barWidth: 10,
barPadding: 5,
/* r.seriesDefaults.rendererOptions.smooth
* variable field - depending on the dashbard type and graph type asked for*/
smooth:true,
animation:{show:true}
},
showMarker:false,
pointLabels:{
show:true,//<<<<<<<<<< problem here - do not work in IE8
stackedValue: false //[true - for showing values above the stacked bars]
}
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
borderColor: "#ff1111",
borderWidth: 7,
rendererOptions:{
show: true
},
/* r.axes.xaxis.ticks
* variable field - depending on the dashbard type and graph type asked for*/
ticks: data_xAxis_ticks,
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
tickOptions:{
angle:-30,
formatString:'%b-%#d\' %y'
}
},
yaxis: {
autoscale:true
}
},
series:{
renderer:$.jqplot.BarRenderer
//neighborThreshold: -10 //gives unnecessary gap when bars get stacked
},
legend: {
renderer: $.jqplot.EnhancedLegendRenderer,//<<<<<<<<<< problem here - do not work in IE8
show: true,
rendererOptions:{
numberColumns:2 //testing:works//<<<<<<<<<< problem here - do not work in IE8
},
labels:data_legend_labels,
formatString:'%b-%#d\' %y',fontSize:'10pt', fontFamily:'Tahoma'
//placement: 'outside'
},
grid: {
drawGridLines: true, // whether to draw lines across the grid or not.
gridLineColor: '#dddddd', // *Color of the grid lines.
background: '#ffffff', // CSS color spec for background color of grid.
drawBorder:false,
shadow: false
//borderColor: '#999999', // CSS color spec for border around grid.
//borderWidth: 2.0
},
highlighter: { //<<<<<<<<<< problem here - do not work in IE8
show: true,
showMarker:false,
tooltipContentEditor:function(str, seriesIndex, pointIndex, jqPlot) {
str.split(",");
var v=str.substr(2,str.length - 1);
return (r.legend.labels[seriesIndex]+"<br>"+v);
}
},
cursor: {
show: false
}
};
r={
/*常量字段-用于组件的“var”文件中指定的基于主题的默认颜色*/
系列颜色:系列颜色,
系列默认值:{
/*r.seriesDefaults.renderer
*变量字段-取决于要求的dashbard类型和图形类型*/
渲染器:$.jqplot.blunderer,
/*r.seriesDefaults.renderOptions
*变量字段-取决于要求的dashbard类型和图形类型*/
渲染器选项:{
是的,
利润率:50,
条宽:10,
加筋:5,
/*r.seriesDefaults.renderOptions.smooth
*变量字段-取决于要求的dashbard类型和图形类型*/
平滑:是的,
动画:{show:true}
},
showMarker:false,
点标签:{
show:true,//对不起,只是一个“我也是”来看看你是否取得了任何进展?我刚刚发现我的漂亮图表不会显示在IE8中-即使在修复excanvas的东西之后,它们仍然是缺陷。我现在回去检查演示-甚至简单的条形图/派也会出现错误(只有标签,没有轴,没有条形图等)似乎我们并不孤单-即使示例在IE8中也不起作用!找到了解决我的问题的方法,我现在对jqplot和IE很满意!:)IE8有6种不同的重新驱动模式,令人惊讶的是,当它呈现为IE8时,它会失败。因此,您需要切换到IE7呈现模式,如下所述: