OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of app; | 5 part of app; |
6 | 6 |
7 class GoogleChart { | 7 class GoogleChart { |
8 static var _api; | 8 static var _api; |
9 | 9 |
10 /// Get access to the JsObject containing the Google Chart API: | 10 /// Get access to the JsObject containing the Google Chart API: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 options['sortAscending'] = props['ascending']; | 119 options['sortAscending'] = props['ascending']; |
120 } | 120 } |
121 } | 121 } |
122 | 122 |
123 /// Draw this chart using [table] and the current [options]. | 123 /// Draw this chart using [table] and the current [options]. |
124 void draw(DataTable table) { | 124 void draw(DataTable table) { |
125 var jsOptions = new JsObject.jsify(options); | 125 var jsOptions = new JsObject.jsify(options); |
126 _chart.callMethod('draw', [table._table, jsOptions]); | 126 _chart.callMethod('draw', [table._table, jsOptions]); |
127 } | 127 } |
128 } | 128 } |
OLD | NEW |