javascript - Kendo chart.redraw() method not working in IE8 -
i use kendoui chart object in dynamic data being added it. there dynamic data being added both data points value axis. when trying run .redraw() method on chart in order re-paint whole thing rather update data points ie8 throws invalid argument errors not complete operation due 80020101.
removing redraw() statement fixes , allows charts render, section update axis , chart whole not. here section of code fails.
//add value axis: var chartoptions = metricschart.options; var valueaxis = metricschart.options.valueaxis; chartoptions.valueaxis = []; //reset value axis chartoptions.valueaxis.push(valueaxis); //chartoptions.valueaxis.push({}); //right value axis //left value axis: chartoptions.valueaxis[0] = { name: leftdata.measurementtypegroupname, //"blood pressure" title: { text: leftdata.measurementtypegroupname + (leftdata.seriesdata[0].unitname.length > 0 ? " (" + leftdata.seriesdata[0].unitname + ")" : ""), font: "12px", color: "gray" }, color: "gray", labels: { format: "{0}", }, majorgridlines: { visible: false }, min: yaxismin, max: yaxismax, //there 3 plot bands: (yaxismin, rangelow), (rangelow, rangehigh), ( rangehigh, yaxismax) plotbands: [{ from: yaxismin, to: rangelow, color: bottomplotcolor, opacity: 0.8 }, { from: rangelow, to: rangehigh, color: middleplotcolor, opacity: 0.8 }, { from: rangehigh, to: yaxismax, color: topplotcolor, opacity: 0.8 }] }; ( var j = 0; j < leftdata.seriesdata.length; j ++) { chartoptions.series[j].axis = leftdata.measurementtypegroupname; //e.g. "blood pressure"; } metricschart.redraw();
}
this huge breaker @ moment, if 1 has method can recommend other .redraw method. huge help.
problem solved, error
text: leftdata.measurementtypegroupname + (leftdata.seriesdata[0].unitname.length > 0 ? " (" + leftdata.seriesdata[0].unitname + ")" : ""),
removing line title{} object solved issue.
Comments
Post a Comment