ChartRangeFilter not perform in IE8 or less

117 views
Skip to first unread message

Ji Joe

unread,
Aug 30, 2012, 3:48:02 AM8/30/12
to google-visua...@googlegroups.com
I have painted some charts using google chart tools and it performs well in chrome ,firefox or other bowsers even in IE9. But when i make it run in IE8, it couldnot work.
More specified , the chart with chartRangeFilter function usually do not work, sometimes it perfoms, but the range of the control is in mess ,and many options of chart are not work.
sometimes it shows nothing and the ie warm jumps out to show my script is wrong .
Other charts can perform but need a long time wait.
The problem really confuse me.Thank you a lot if you could give me a help :-)

asgallant

unread,
Aug 30, 2012, 12:53:13 PM8/30/12
to google-visua...@googlegroups.com
Performance problems with the ChartRangeFilter are usually because the data set contains a large number of rows of data.  If you use a DataView to filter the data rows used by the filter, then you might fix the performance problem.  Here's an example: http://jsfiddle.net/asgallant/zRjX5/ 

Ji Joe

unread,
Aug 30, 2012, 10:14:00 PM8/30/12
to google-visua...@googlegroups.com
Thank yor for your advise.I did as your example. But when the chart showed, the first right ten points in the chart  were missing. Are there any solutions for this problem?

在 2012年8月31日星期五UTC+8上午12时53分13秒,asgallant写道:

asgallant

unread,
Aug 31, 2012, 11:43:11 AM8/31/12
to google-visua...@googlegroups.com
Ahh...the last row is probably missing from the rangeRows array.  Try building rangeRows like this instead:

// use every 10th row for the rangeFilter
var rangeRows [];
for (var 0data.getNumberOfRows()i++{
    if (!(10){
        rangeRows.push(i);
    }
}

// check to see if the last row is included
// if it isn't, add it
if (rangeRows[rangeRows.length 1!= data.getNumberOfRows(1{
    rangeRows.push(data.getNumberOfRows(1);
}

See it in action here: http://jsfiddle.net/asgallant/zRjX5/ 

Ji Joe

unread,
Sep 3, 2012, 4:40:31 AM9/3/12
to google-visua...@googlegroups.com
Thank you very much!
But the speed of changing range is still too low.The delay is very obvious when the number of the points is large. 
I dont know how to speed up the chart and make it more smooth when change the rangefilter state.

在 2012年8月31日星期五UTC+8下午11时43分11秒,asgallant写道:

asgallant

unread,
Sep 3, 2012, 8:33:28 PM9/3/12
to google-visua...@googlegroups.com
Try using even fewer rows for the ChartRangeFilter.  Change the "10" in this row:

if (!(10){ 

to something larger (say, 20 to start).  Keep experimenting until you find something that works.
Reply all
Reply to author
Forward
0 new messages