Column width are automatically calculated based on the type of columns and
the data.There is no simple algorithm I can provide here.

VizGuy



On Thu, Nov 13, 2008 at 9:31 AM, JustinK101 <[EMAIL PROTECTED]> wrote:

>
> VizGuy,
>
> Thanks for the quick reply. So then, how is the width currently
> determined? Because each columns inst the size width in my example?
>
> On Nov 12, 11:22 pm, VizGuy <[EMAIL PROTECTED]> wrote:
> > The short answer is no.
> > The details are that you mix two different things: The DataTable object,
> and
> > the Table visualization.
> > There is no meaning to column width in the data table itself. This is a
> > logical data representation.
> > In the visualization called table, this is meaningful, but not supported
> > yet.
> >
> > VizGuy
> >
> > On Thu, Nov 13, 2008 at 9:18 AM, JustinK101 <[EMAIL PROTECTED]>
> wrote:
> >
> > > Is there a way to set the widths of the columns in a datatable?
> > > Currently I am doing:
> >
> > > data.addColumn('string', 'Name');
> > > data.addColumn('string', 'E-Mail');
> > > data.addColumn('string', 'Address');
> > > data.addColumn('string', 'City');
> > > data.addColumn('string', 'State');
> > > data.addColumn('string', 'ZipCode');
> > > data.addColumn('boolean', 'Active');
> >
> > > Would be nice to do something like:
> >
> > > data.addColumn('string', 'Name', 15);
> > > data.addColumn('string', 'E-Mail', 25);
> > > data.addColumn('string', 'Address', 25);
> > > data.addColumn('string', 'City', 20);
> > > data.addColumn('string', 'State', 5);
> > > data.addColumn('string', 'ZipCode', 5);
> > > data.addColumn('boolean', 'Active', 5)
> >
> > > Where the numbers are percents of the div container for the width of
> > > the column.
> >
>

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