Hi Jinji,

You said:

  "The result DataTable has new cells with new values, values that
didn't appear in the original DataTable."

Not for the columns being grouped.  Those columns *must* contain
values that appear in the original DataTable.

More generally, though, it seems as if the GVIZ team implemented
formatters simply as a function that changes the formatted value of a
cell, not as an attribute on a column.  The latter would allow all the
functionality of the former and more.

I want to again bring up the limitations that arise from applying a
formatter to a DataTable instead of a DataView.  I have a list of
enhancement requests and bugs that wouldn't exist if formatters could
be applied to DataViews instead of DataTables.  I work around this
limitation on a nearly daily basis.  There's a lot of extra code and
wasted brainpower that's gone into dealing with this.




On Jul 14, 12:27 pm, Jinji <[email protected]> wrote:
> On Wed, Jul 13, 2011 at 6:55 PM, NA <[email protected]> wrote:
> > And what happens if you do a GroupBy ?  Do the formatters on the
> > grouped columns remain?  It doesn't seem like they do, but it seems
> > like they should.  Is this a bug or am I making a mistake somewhere?
>
> You're right that they don't, but I don't understand how could they. The
> result DataTable has new cells with new values, values that didn't appear in
> the original DataTable. So there's no formatted value to copy. You can,
> however, apply the formatter on the result.
>
>
>
>
>
>
>
>
>
> > On Jul 13, 10:15 am, NA <[email protected]> wrote:
> > > If you apply formatters to a table, do they stay with copies of the
> > > table made by clone() ?
>
> > > Also, it would help to clarify the example for the pattern formatter
> > > to show that the integers in the format string are not column indexes
> > > but are indexes into the array defined when you call format().  The
> > > example avoids this issue by using the same format string integers as
> > > column indexes.  This was a little confusing for me.
>
> > --
> > 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