Try using even fewer rows for the ChartRangeFilter.  Change the "10" in 
this row:

if (!(i % 10)) { 

to something larger (say, 20 to start).  Keep experimenting until you find 
something that works.

On Monday, September 3, 2012 4:40:31 AM UTC-4, Ji Joe wrote:
>
> 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写道:
>>
>> 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 i = 0; i < data.getNumberOfRows(); i++) {
>>     if (!(i % 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/ 
>>
>> On Thursday, August 30, 2012 10:14:00 PM UTC-4, Ji Joe wrote:
>>>
>>> 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写道:
>>>>
>>>> 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/ 
>>>>
>>>> On Thursday, August 30, 2012 3:48:02 AM UTC-4, Ji Joe wrote:
>>>>>
>>>>> 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 :-)
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/PvkQY2oZsZcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to