It sounds like using the DataTable method setFormattedValue() would be a
better approach for your use case than the DateFormatter.  Let me know if
you have any questions.

thanks,

MC Get Vizzy

On Sun, Jan 2, 2011 at 8:24 PM, matthew <[email protected]> wrote:

> Hi,
>
> How would you hook up a Date formatter to show the quarter?  ie, I want to
> have my formatter run the getQuarter() function instead of providing the
> pattern listed.
>
>
> var todayFormatter = new google.visualization.DateFormat({pattern: "MMM
> d"});
>
> function getQuarter(someDate) {
>         return Math.floor(someDate.getMonth()/3) + 1;
> }
>
>  --
> 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]<google-visualization-api%[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.

Reply via email to