On Fri, Jul 15, 2011 at 4:02 PM, NA <[email protected]> wrote:

> 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.
>

Yes, but those values appeared several times, possibly each time with a
different formatted value. In the result DataTable this value appears only
once - which of the formatted values would it borrow?


> 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.


That's correct.

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.
>

Formatting in the DataView would be useful, I agree. We'll take it into
account, but can't promise anything about it, though. Sorry.


>
>
>
> 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.
>
>

-- 
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