As you change the chartrangefilter you are filtering the data to just the
row that are within the range selected, so there are fewer data points than
the whole table has.  The problem occurs once you filter out all but one
row or data point.
On Aug 17, 2015 9:04 PM, "Noobie All" <[email protected]> wrote:

> Dear Daniel
>
> Thanks for the advice, I will update you again once I worked on it.
> By the way, may I asked what do you mean by *"one data point is left"*?
>
>
> On Sun, Aug 16, 2015 at 10:24 PM, 'Daniel LaLiberte' via Google
> Visualization API <[email protected]> wrote:
>
>> Thanks.  Yes, it is as I said, except only one data point is left, which
>> results in the same problem of not knowing how far to extend the hAxis
>> around that one point.  If you add 'yyyy' to your format, you'll see the
>> large range of years.
>>
>> One relatively easy solution is that you can now use the AnnotationChart
>> for this, and turn off the display of annotations.  The AnnotationChart
>> uses a ChartRangeFilter internally, and gets the range from the range
>> selector and applies that to the viewWindow of the chart.  That's
>> effectively what you would need to do yourself without the AnnotationChart
>> because otherwise the chart doesn't know what the intended range should be
>> when you only provide it 1 point.
>>
>> On Sat, Aug 15, 2015 at 1:37 PM, Noobie All <[email protected]> wrote:
>>
>>> Dear Daniel
>>>
>>> Here is a sample link. Please take a look.
>>> http://codepen.io/noobiemania/pen/bdybgj
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Thursday, August 13, 2015 at 8:07:07 PM UTC+8, Daniel LaLiberte wrote:
>>>>
>>>> I suspect the problem is that the filter results in no data being sent
>>>> out, and then the date axis shows the default range over several years, but
>>>> you are not displaying the year in your format.  Could you provide a
>>>> working example that demonstrates the problem you are seeing?
>>>>
>>>> On Wed, Aug 12, 2015 at 10:37 PM, Noobie All <[email protected]> wrote:
>>>>
>>>>> Any advice for the question posted below?
>>>>>
>>>>> http://stackoverflow.com/questions/31960009/google-charts-fixing-date-shown-on-haxis-when-using-chartrangefilter-control
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Google Visualization API" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at
>>>>> http://groups.google.com/group/google-visualization-api.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Daniel LaLiberte
>>>> <https://plus.google.com/100631381223468223275?prsrc=2>  - 978-394-1058
>>>> [email protected]   5CC, Cambridge MA
>>>> [email protected] 9 Juniper Ridge Road, Acton MA
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Visualization API" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to
>>> [email protected].
>>> Visit this group at
>>> http://groups.google.com/group/google-visualization-api.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>>  - 978-394-1058
>> [email protected] <[email protected]>   5CC, Cambridge MA
>> [email protected] <[email protected]> 9 Juniper Ridge
>> Road, Acton MA
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Visualization API" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/google-visualization-api/2ZGk60rp7Iw/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to
>> [email protected].
>> Visit this group at
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/CAJB5zK6Mh%3DC7G7%3D-wxKU4oXqiWvbOgU7cMdZAU%2BzyK80bdWcSg%40mail.gmail.com
> <https://groups.google.com/d/msgid/google-visualization-api/CAJB5zK6Mh%3DC7G7%3D-wxKU4oXqiWvbOgU7cMdZAU%2BzyK80bdWcSg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO9izpZyZF2CK0vm3B5ZKuajiD6dTdGxVkBY%2BPDu-3zPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to