The NumberFormat only changes the way the data is displayed in the chart, 
not the control.  You need to use the ui.format option.

On Tuesday, March 4, 2014 11:48:17 AM UTC-5, kotmanp wrote:
>
> Hi Asgallant,
>  
> I have tried using the below, but this dint work:
>  
> var AgeFormatter = new google.visualization.NumberFormat({fractionDigits: 
> 2});
> AgeFormatter.format(data, 2); 
>  
>
> On Tuesday, March 4, 2014 9:08:45 PM UTC+5:30, asgallant wrote:
>
>> Use the ui.format option: 
>>
>> ui: {
>>     labelStacking: 'vertical',
>>     step: 5,
>>     format: '#'
>> }
>>
>> On Tuesday, March 4, 2014 5:15:27 AM UTC-5, kotmanp wrote: 
>>>
>>> In the below example if we add step:5 to the code for NumberRangeFilter 
>>> as follows:
>>>  
>>> http://jsfiddle.net/asgallant/bj3Rz/2/
>>>   
>>>      // Define a slider control for the Age column.
>>>     var slider = new google.visualization.ControlWrapper({
>>>         controlType: 'NumberRangeFilter',
>>>         containerId: 'control1',
>>>         dataTable: data,
>>>         options: {
>>>             filterColumnLabel: 'Age',
>>>             ui: {
>>>                 labelStacking: 'vertical',
>>>                 
>>> *step: 5*            }
>>>         }
>>>     });
>>>  
>>> I need the slider to move by 5 values, it is correctly moving. But the 
>>> issue is it is adding 5 extra 0s for decimal values for the start and end 
>>> value of the slider by default. If i put step as 10, it is adding 10 0s for 
>>> decimal places (0.0000000000 to 60.0000000000).  
>>>  
>>> Can some one help me removing these extra 0s when i use 'step' for 
>>> NumberRangeFilter. 
>>>
>>

-- 
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/groups/opt_out.

Reply via email to