TableChart
Â
Inhalt:
Füllen von Daten
Properties
Allgemein
Detaillierte Information finden Sie zusätzlich hier: https://developers.google.com/chart/interactive/docs/gallery/table
Beispiel: Füllen der Daten
final ChartModel model = ChartModel.New()
.addColumn(Column.New(Type.STRING, "Name"))
.addColumn(Column.New(Type.NUMBER, "Salary"))
.addColumn(Column.New(Type.BOOLEAN, "Full Time Employee"));
model.addRow("Mike", Cell.New(10000, "$10.000"), true);
model.addRow("Jim", Cell.New(8000, "$8.000"), false);
model.addRow("Alice", Cell.New(12500, "$12.500"), true);
model.addRow("Bob", Cell.New(7000, "$7.000"), true);
tableChart.setModel(model); |
API und Methoden:
Properties | Â |
---|---|
AllowHTML | If set to true, formatted values of cells that include HTML tags will be rendered as HTML. If set to false, most custom formatters will not work properly. this.tableChart.setAllowHtml(true); |
AlternatingRowStyle | Determines if alternating color style will be assigned to odd and even rows. this.tableChart.setAlternatingRowStyle(true); |
FirstRowNumber | The row number for the first row in the dataTable. Used only if showRowNumber is true. |
FrozenColumns | The number of columns from the left that will be frozen. These columns will remain in place when scrolling the remaining columns horizontally. If |
Page | If and how to enable paging through the data. Choose one of the following string values:
|
PageSize | The number of rows in each page, when paging is enabled with the page option. |
PagingButtons | Sets a specified option for the paging buttons. The options are as follows:
|
RtlTable | Adds basic support for right-to-left languages (such as Arabic or Hebrew) by reversing the column order of the table, so that column zero is the rightmost column, and the last column is the leftmost column. This does not affect the column index in the underlying data, only the order of display. Full bi-directional (BiDi) language display is not supported by the table visualization even with this option. This option will be ignored if you enable paging (using the page option), or if the table has scroll bars because you have specified height and width options smaller than the required table size. |
ScrollLeftStartPosition | Sets the horizontal scrolling position, in pixels, if the table has horizontal scroll bars because you have set the width property. The table will open scrolled that many pixels past the leftmost column. |
ShowRowNumber | If set to true, shows the row number as the first column of the table. |
Sort | If and how to sort columns when the user clicks a column heading. If sorting is enabled, consider setting the sortAscending and sortColumn properties as well. Choose one of the following string values:
|
StartPage | The first table page to display. Used only if |
Â
XDEV Software Corp. - One Embarcadero Center, San Francisco, CA 94111, US
Copyright © 2015. XDEV Software Corp. All rights reserved.