| OLD | NEW |
| 1 // | 1 // |
| 2 // Copyright 2014 Google Inc. All rights reserved. | 2 // Copyright 2014 Google Inc. All rights reserved. |
| 3 // | 3 // |
| 4 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
| 5 // license that can be found in the LICENSE file or at | 5 // license that can be found in the LICENSE file or at |
| 6 // https://developers.google.com/open-source/licenses/bsd | 6 // https://developers.google.com/open-source/licenses/bsd |
| 7 // | 7 // |
| 8 | 8 |
| 9 part of charted.charts; | 9 part of charted.charts; |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 Iterable<int> measures; | 47 Iterable<int> measures; |
| 48 | 48 |
| 49 /// Instance of the renderer used to render the series. | 49 /// Instance of the renderer used to render the series. |
| 50 /// | 50 /// |
| 51 /// [ChartArea] creates a renderer using [ChartRender.create] and uses it | 51 /// [ChartArea] creates a renderer using [ChartRender.create] and uses it |
| 52 /// to compute range of the measure axis and to render the chart. | 52 /// to compute range of the measure axis and to render the chart. |
| 53 ChartRenderer renderer; | 53 ChartRenderer renderer; |
| 54 | 54 |
| 55 /// Factory function to create an instance of internal implementation of | 55 /// Factory function to create an instance of internal implementation of |
| 56 /// [ChartSeries]. | 56 /// [ChartSeries]. |
| 57 factory ChartSeries(String name, Iterable<int> measures, | 57 factory ChartSeries( |
| 58 ChartRenderer renderer, { Iterable<String> measureAxisIds : null }) => | 58 String name, Iterable<int> measures, ChartRenderer renderer, |
| 59 new DefaultChartSeriesImpl(name, measures, renderer, measureAxisIds); | 59 {Iterable<String> measureAxisIds: null}) => |
| 60 new DefaultChartSeriesImpl(name, measures, renderer, measureAxisIds); |
| 60 } | 61 } |
| 61 | 62 |
| 62 | |
| 63 /// | 63 /// |
| 64 /// Implementation of [ChangeRecord] that is used to notify changes to | 64 /// Implementation of [ChangeRecord] that is used to notify changes to |
| 65 /// [ChartSeries]. Currently, only changes to measures and measureAxisIds | 65 /// [ChartSeries]. Currently, only changes to measures and measureAxisIds |
| 66 /// are supported. | 66 /// are supported. |
| 67 /// | 67 /// |
| 68 class ChartSeriesChangeRecord implements ChangeRecord { | 68 class ChartSeriesChangeRecord implements ChangeRecord { |
| 69 /// Reference to series that changed | 69 /// Reference to series that changed |
| 70 final ChartSeries series; | 70 final ChartSeries series; |
| 71 | 71 |
| 72 const ChartSeriesChangeRecord(this.series); | 72 const ChartSeriesChangeRecord(this.series); |
| 73 } | 73 } |
| OLD | NEW |