I can't think of any way to do this with the existing formatters, sorry...

On Tue, Aug 9, 2011 at 6:24 PM, NA <[email protected]> wrote:

> In the general case, I want to be able to take a formatter that I've
> already defined, and string-replace some of its contents.
>
> As an example, I have a formatter that looks like this:
>
>   var dFormatter = new google.visualization.DateFormat({pattern: 'MMM
> d, h a'});
>
> I'd like to modify the formatter to use non-breaking whitespaces
> instead of whitespaces.  I'd like to do something like:
>
>  var dFormatter = new google.visualization.DateFormat({pattern:
> 'MMM&nbsp;d,&nbsp;h&nbsp;a'});
>
> but this doesn't work.
>
> Is there a clever way of doing this without having to write a my own
> formatter?  I want to do this in general for a variety of formatters,
> so it'd be great to be able to manipulate the formatter object after
> creating it to get this effect.
>
> 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.

Reply via email to