There is no direct way to control the width of a column in the Table charts, but you might be able to get around it by using the DataTable#setProperty method (http://code.google.com/apis/chart/interactive/docs/reference.html#DataTable_setProperty, http://code.google.com/apis/chart/interactive/docs/gallery/table.html#customproperties) and give each cell in the column a CSS class which defines the cell width.
--To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/LqRgMsZGqwMJ.
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
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 view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/m5I6jVxfaTkJ.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/oQ1g7ayJr7IJ.
You're welcome.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c36007a7-fafb-43cc-a097-20cf80fdb450%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jay,You are setting the 0th row property, which is actually the first data row, not the header row. If you set some other property, such as 'color', you will see that the property is being set properly for the data cell, and you can see (in the debugger) your width setting for the element as well.But even if you could set the width of the header column (a th element), this is not all you need to do to set the width of an html table. There might be some interference with other settings for the table, and its containers, however. It might be that we have broken the ability to set the column width of a table. So, experiment with removing your 100% width option, or setting to a specific width, or 'auto'.Hope that helps.
On Sun, May 7, 2017 at 3:38 PM, Jay OCHS <info@orangecountyhistoricalsociety.org> wrote:
Any idea why this solution does not work on a table read in from a google sheet? See https://jsfiddle.net/Jay_Campbell/dgbh6sL0/124/
On Thursday, October 20, 2011 at 10:08:12 AM UTC-4, asgallant wrote:You're welcome.
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/c36007a7-fafb-43cc-a097-20cf80fdb450%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sorry, I forgot to mention that you will need to use css to set the width of a column, if you can do it at all. And you will need to do it not using any of the supported cssClassNames, since not apply to specific columns.I suppose it would be easier for users if we provide more direct support for this kind of thing.
On Sun, May 7, 2017 at 7:39 PM, Daniel LaLiberte <dlali...@google.com> wrote:
Hi Jay,You are setting the 0th row property, which is actually the first data row, not the header row. If you set some other property, such as 'color', you will see that the property is being set properly for the data cell, and you can see (in the debugger) your width setting for the element as well.But even if you could set the width of the header column (a th element), this is not all you need to do to set the width of an html table. There might be some interference with other settings for the table, and its containers, however. It might be that we have broken the ability to set the column width of a table. So, experiment with removing your 100% width option, or setting to a specific width, or 'auto'.Hope that helps.