

certainty columns indicate whether the data at that point is certain.interval columns specify the top and bottom points of I-bars on the chart.annotationText columns specify hovertext when you mouse over the annotation ( not the data point).annotation columns specify static labels in the chart here, 'A', 'B', 'C' are annotations.This chart has optional columns for annotation, annotationText, interval, and certainty roles. This chart assigns roles explicitly, and so the optional columns can be added. This chart does not apply roles explicitly, and so can only use the basic data and domain column layout shown above.ĭataTable: var data = new () ĭata.addColumn('string', 'Month') // Implicit domain label col.ĭata.addColumn('number', 'Sales') // Implicit series 1 data col. number, date, datetime or timeofday ( continuous).Here is a comparison of what you can do with a line chart using only the default, inferred roles,Ĭompared to additional, explicitly assigned roles. Roles are available for you to explicitly assign, and how to assign them. The table, according to the chart's data format specification. If you do not explicitly assign a column's role, its role is inferred by the column's order in New, interesting features to a chart such as arbitrary annotation labels, hovertext, and With the ability to explicitly assign column roles, you can now add optional columns that provide Roles were assigned implicitly, based on the order and type of the columns in the table. Major axis values and 'data', which specifies bar heights, pie slice widths, and so on. Originally, there were only two roles available for a column: 'domain', which specifies the Note: if you're looking to control the content of the tooltips that appear when the user hovers 'domain' column, we also generally allow the 'annotation' and 'annotationText' column roles.

For example, you could have two columnsįollowing a 'data' column, one for 'tooltip' and one for 'annotation'. Roles apply to the 'data' column preceding it, whether it is immediately before it orīefore the first of a consecutive group of role columns. Hold data describing tooltip text, data point annotations, or uncertainty indicators.

AĬolumn role describes the purpose of the data in that column: for example, a column might Google DataTable and DataView objects now support explicitly assigned column roles. This page describes the concept and use of roles in chart data tables.
