OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class ClientChart extends Chart { | 5 class ClientChart extends Chart { |
6 | 6 |
7 static final List<String> _strokeColors = | 7 static final List<String> _strokeColors = |
8 ["#ff0000", "#00ff00", "#0000ff", "#ffff00", "#ff00ff", "#00ffff", "#00000
0"]; | 8 const ["#ff0000", "#00ff00", "#0000ff", "#ffff00", "#ff00ff", "#00ffff", "#
000000"]; |
9 | 9 |
10 CanvasElement _canvas; | 10 CanvasElement _canvas; |
11 | 11 |
12 ClientChart(this._canvas) : super() { } | 12 ClientChart(this._canvas) : super() { } |
13 | 13 |
14 void render() { } | 14 void render() { } |
15 } | 15 } |
16 | 16 |
17 class ClientLineChart extends ClientChart { | 17 class ClientLineChart extends ClientChart { |
18 | 18 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 if (row == 0) { | 103 if (row == 0) { |
104 ctx.moveTo(x, y); | 104 ctx.moveTo(x, y); |
105 } else { | 105 } else { |
106 ctx.lineTo(x, y); | 106 ctx.lineTo(x, y); |
107 } | 107 } |
108 } | 108 } |
109 ctx.stroke(); | 109 ctx.stroke(); |
110 } | 110 } |
111 } | 111 } |
112 } | 112 } |
OLD | NEW |