OLD | NEW |
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` | 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` |
2 | 2 |
3 /// Dart API for the polymer element `google_chart`. | 3 /// Dart API for the polymer element `google_chart`. |
4 @HtmlImport('google_chart_nodart.html') | 4 @HtmlImport('google_chart_nodart.html') |
5 library polymer_elements.lib.src.google_chart.google_chart; | 5 library polymer_elements.lib.src.google_chart.google_chart; |
6 | 6 |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 import 'dart:js' show JsArray, JsObject; | 8 import 'dart:js' show JsArray, JsObject; |
9 import 'package:web_components/web_components.dart'; | 9 import 'package:web_components/web_components.dart'; |
10 import 'package:polymer_interop/polymer_interop.dart'; | 10 import 'package:polymer_interop/polymer_interop.dart'; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 /// <pre> | 120 /// <pre> |
121 /// [{row:0,column:1}, {row:1, column:null}] | 121 /// [{row:0,column:1}, {row:1, column:null}] |
122 /// </pre> | 122 /// </pre> |
123 List get selection => jsElement[r'selection']; | 123 List get selection => jsElement[r'selection']; |
124 set selection(List value) { jsElement[r'selection'] = (value != null && value
is! JsArray) ? new JsObject.jsify(value) : value;} | 124 set selection(List value) { jsElement[r'selection'] = (value != null && value
is! JsArray) ? new JsObject.jsify(value) : value;} |
125 | 125 |
126 /// Sets the type of the chart. | 126 /// Sets the type of the chart. |
127 /// | 127 /// |
128 /// Should be one of: | 128 /// Should be one of: |
129 /// - `area`, `bar`, `bubble`, `candlestick`, `column`, `combo`, `geo`, | 129 /// - `area`, `bar`, `bubble`, `candlestick`, `column`, `combo`, `geo`, |
130 /// `histogram`, `line`, `pie`, `scatter`, `stepped-area` | 130 /// `histogram`, `line`, `pie`, `scatter`, `stepped-area`, `treemap` |
131 /// | 131 /// |
132 /// See <a href="https://google-developers.appspot.com/chart/interactive/docs/
gallery">Google Visualization API reference (Chart Gallery)</a> for details. | 132 /// See <a href="https://google-developers.appspot.com/chart/interactive/docs/
gallery">Google Visualization API reference (Chart Gallery)</a> for details. |
133 String get type => jsElement[r'type']; | 133 String get type => jsElement[r'type']; |
134 set type(String value) { jsElement[r'type'] = value; } | 134 set type(String value) { jsElement[r'type'] = value; } |
135 | 135 |
136 /// Draws the chart. | 136 /// Draws the chart. |
137 /// | 137 /// |
138 /// Called automatically on first load and whenever one of the attributes | 138 /// Called automatically on first load and whenever one of the attributes |
139 /// changes. Can be called manually to handle e.g. page resizes. | 139 /// changes. Can be called manually to handle e.g. page resizes. |
140 drawChart() => | 140 drawChart() => |
141 jsElement.callMethod('drawChart', []); | 141 jsElement.callMethod('drawChart', []); |
142 } | 142 } |
OLD | NEW |