| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 /// Column/series that is active, possibly by a click | 24 /// Column/series that is active, possibly by a click |
| 25 static const int STATE_ACTIVE = 2; | 25 static const int STATE_ACTIVE = 2; |
| 26 | 26 |
| 27 /// Color that can be used for key. | 27 /// Color that can be used for key. |
| 28 /// For a given input key, the output is always the same. | 28 /// For a given input key, the output is always the same. |
| 29 String getColorForKey(key, [int state]); | 29 String getColorForKey(key, [int state]); |
| 30 | 30 |
| 31 /// Markup for filters that is added to all chart elements. These filters | 31 /// Markup for filters that is added to all chart elements. These filters |
| 32 /// can be referenced using url() in values returned by [getFilterForState]. | 32 /// can be referenced using url() in values returned by [getFilterForState]. |
| 33 String filters; | 33 String get filters; |
| 34 | 34 |
| 35 /// Returns any filters that must be applied based on the element's state | 35 /// Returns any filters that must be applied based on the element's state |
| 36 String getFilterForState(int state); | 36 String getFilterForState(int state); |
| 37 | 37 |
| 38 /// Color for overflow and other items. | 38 /// Color for overflow and other items. |
| 39 /// For example, the collect all bucket used by pie-chart. | 39 /// For example, the collect all bucket used by pie-chart. |
| 40 String getOtherColor([int state]); | 40 String getOtherColor([int state]); |
| 41 | 41 |
| 42 /// Width of the separator between two chart elements. | 42 /// Width of the separator between two chart elements. |
| 43 /// Used to separate pies in pie-chart, bars in grouped and stacked charts. | 43 /// Used to separate pies in pie-chart, bars in grouped and stacked charts. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 bool get verticalAxisAutoResize => true; | 112 bool get verticalAxisAutoResize => true; |
| 113 | 113 |
| 114 /// Width of vertical axis when it is not resizing automatically. If | 114 /// Width of vertical axis when it is not resizing automatically. If |
| 115 /// [autoResizeAxis] is set to true, [verticalAxisWidth] will be used as the | 115 /// [autoResizeAxis] is set to true, [verticalAxisWidth] will be used as the |
| 116 /// maximum width of the vertical axis. | 116 /// maximum width of the vertical axis. |
| 117 /// | 117 /// |
| 118 /// Height of vertical axis is automatically computed based on height of the | 118 /// Height of vertical axis is automatically computed based on height of the |
| 119 /// visualization. | 119 /// visualization. |
| 120 int get verticalAxisWidth => 200; | 120 int get verticalAxisWidth => 200; |
| 121 | 121 |
| 122 /// Height of horizontal axis. Width of horizontal axis is automatically | 122 /// Max height of horizontal axis, this is used when the axis label need to be |
| 123 /// computed based on width of the visualization. | 123 /// rotated. If rotated label would be ellipsed if the height is greater than |
| 124 /// this value. Width of horizontal axis is automatically computed based on |
| 125 /// width of the visualization. |
| 124 int get horizontalAxisHeight => 200; | 126 int get horizontalAxisHeight => 200; |
| 125 | 127 |
| 126 /// Font used by axis ticks. When specified, axis uses efficient off-screen | 128 /// Font used by axis ticks. When specified, axis uses efficient off-screen |
| 127 /// computation of text metrics. | 129 /// computation of text metrics. |
| 128 /// | 130 /// |
| 129 /// Font string must be of the following form: | 131 /// Font string must be of the following form: |
| 130 /// "bold italic 16px Roboto" | 132 /// "bold italic 16px Roboto" |
| 131 /// "bold 16px Roboto" | 133 /// "bold 16px Roboto" |
| 132 /// "italic 16px Roboto" | 134 /// "italic 16px Roboto" |
| 133 /// "16px Roboto" | 135 /// "16px Roboto" |
| 134 /// | 136 /// |
| 135 /// When not specified, SVGTextElement's metrics API will be used. | 137 /// When not specified, SVGTextElement's metrics API will be used. |
| 136 String get ticksFont => null; | 138 String get ticksFont => null; |
| 137 } | 139 } |
| OLD | NEW |