| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 /// When set to true, the chart rendering changes to be more suitable for | 59 /// When set to true, the chart rendering changes to be more suitable for |
| 60 /// scripts that are written from right-to-left. | 60 /// scripts that are written from right-to-left. |
| 61 bool isRTL; | 61 bool isRTL; |
| 62 | 62 |
| 63 /// Indicate if the horizontal axes and the corresponding scales should | 63 /// Indicate if the horizontal axes and the corresponding scales should |
| 64 /// switch direction too. | 64 /// switch direction too. |
| 65 /// Example: Time scale on the X axis would progress from right to left. | 65 /// Example: Time scale on the X axis would progress from right to left. |
| 66 bool switchAxesForRTL; | 66 bool switchAxesForRTL; |
| 67 | 67 |
| 68 /// Factory method to create an instance of the default implementation | 68 /// Factory method to create an instance of the default implementation |
| 69 factory ChartConfig( | 69 factory ChartConfig(Iterable<ChartSeries> series, |
| 70 Iterable<ChartSeries> series, Iterable<int> dimensions) = DefaultChartConf
igImpl; | 70 Iterable<int> dimensions) = DefaultChartConfigImpl; |
| 71 } | 71 } |
| 72 | 72 |
| 73 /// | 73 /// |
| 74 /// [ChangeRecord] that is used to notify changes to [ChartConfig]. | 74 /// [ChangeRecord] that is used to notify changes to [ChartConfig]. |
| 75 /// Currently, changes to list of dimensions and list of series are monitored. | 75 /// Currently, changes to list of dimensions and list of series are monitored. |
| 76 /// | 76 /// |
| 77 class ChartConfigChangeRecord implements ChangeRecord { | 77 class ChartConfigChangeRecord implements ChangeRecord { |
| 78 const ChartConfigChangeRecord(); | 78 const ChartConfigChangeRecord(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 /// | 81 /// |
| 82 /// Configuration for an axis | 82 /// Configuration for an axis |
| 83 /// | 83 /// |
| 84 class ChartAxisConfig { | 84 class ChartAxisConfig { |
| 85 /// Title for the axis | 85 /// Title for the axis |
| 86 String title; | 86 String title; |
| 87 | 87 |
| 88 /// Scale to be used with the axis | 88 /// Scale to be used with the axis |
| 89 Scale scale; | 89 Scale scale; |
| 90 | 90 |
| 91 /// For a quantitative scale, values at which ticks should be displayed. | 91 /// For a quantitative scale, values at which ticks should be displayed. |
| 92 /// When not specified, the ticks are based on the type of [scale] used. | 92 /// When not specified, the ticks are based on the type of [scale] used. |
| 93 Iterable tickValues; | 93 Iterable tickValues; |
| 94 } | 94 } |
| OLD | NEW |