http://code.google.com/apis/visualization/documentation/reference.html#formatters

"These formatters change the formatted value of the specified column
in all rows. Note that it does not modify the underlying values; just
the formatted values. So, for example, the displayed value would be
"$1,000.00" but the underlying value would still be "1000"."

What I'm trying to achieve is developing a Formatter that, instead of
merely apply a suffix/prefix, or HTML to a number, it uses it for
calculation (e.g.: convert bytes to megabytes).


On Thu, Apr 1, 2010 at 11:43 AM, Dipika Mallya
<[email protected]> wrote:
> What exactly do you have in mind when you say 'a formatter' or do you mean
> to say a fucntion or method which converts raw Bytes data into formatted TB
> data
>
> regards
>
> DM
>
> On Thu, Apr 1, 2010 at 5:24 AM, Julio Cesar <[email protected]> wrote:
>>
>> Hi all,
>>
>> I'm looking for a way to have a formatter applying a calculation to a
>> number. I'm reading the Formatters section of the API reference and it
>> seems the existing NumberFormatter can't do that. That's for a
>> BytesFormatter of sorts (print out MB, GB, TB, etc).
>>
>> I'd be happy to figure a way to apply a method to a number through a
>> formatter. That would not only cover my needs, but potentially a lot
>> of things. Though my problem is I can't find any reference on how to
>> write a formatter from scratch.
>>
>> Any hint would be appreciated. Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Visualization API" group.
>> 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.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> 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.
>



-- 
http://crazyhollywood.org

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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