|
4 | 4 | from .highchart_types import OptionTypeError, Series, SeriesOptions
|
5 | 5 | from .common import Formatter, Events, Position, ContextButton, Options3d, ResetZoomButton, \
|
6 | 6 | DrillUpButton, Labels, PlotBands, PlotLines, Title, Items, Navigation, Background, Breaks, \
|
7 |
| - DateTimeLabelFormats, Zones, Levels, \ |
| 7 | + DataClasses, DateTimeLabelFormats, Zones, Levels, Marker, \ |
8 | 8 | JSfunction, ColorObject, CSSObject, SVGObject, CommonObject, ArrayObject
|
9 | 9 |
|
10 | 10 | import json, datetime
|
@@ -153,6 +153,52 @@ class ChartOptions(BaseOptions):
|
153 | 153 | }
|
154 | 154 |
|
155 | 155 |
|
| 156 | +class ColorAxisOptions(BaseOptions): |
| 157 | + ALLOWED_OPTIONS = { |
| 158 | + "dataClassColor": basestring, |
| 159 | + "dataClasses": (DataClasses, dict), |
| 160 | + "endOnTick": bool, |
| 161 | + "events": (Events, dict), |
| 162 | + "gridLineColor": (ColorObject, basestring, dict), |
| 163 | + "gridLineDashStyle": basestring, |
| 164 | + "gridLineWidth": [float, int], |
| 165 | + "id": basestring, |
| 166 | + "labels": (Labels, dict), |
| 167 | + "lineColor": (ColorObject, basestring, dict), |
| 168 | + "lineWidth": [float, int], |
| 169 | + "marker": (Marker, dict), |
| 170 | + "max": [float, int], |
| 171 | + "maxColor": (ColorObject, basestring, dict), |
| 172 | + "maxPadding": [float, int], |
| 173 | + "min": [float, int], |
| 174 | + "minColor": (ColorObject, basestring, dict), |
| 175 | + "minPadding": [float, int], |
| 176 | + "minorGridLineColor": (ColorObject, basestring, dict), |
| 177 | + "minorGridLineDashStyle": basestring, |
| 178 | + "minorGridLineWidth": int, |
| 179 | + "minorTickColor": (ColorObject, basestring, dict), |
| 180 | + "minorTickInterval": int, |
| 181 | + "minorTickLength": int, |
| 182 | + "minorTickPosition": basestring, |
| 183 | + "minorTickWidth": int, |
| 184 | + "reversed": bool, |
| 185 | + "showFirstLabel": bool, |
| 186 | + "showLastLabel": bool, |
| 187 | + "startOfWeek": int, |
| 188 | + "startOnTick": bool, |
| 189 | + "stops": list, |
| 190 | + "tickColor": (ColorObject, basestring, dict), |
| 191 | + "tickInterval": int, |
| 192 | + "tickLength": int, |
| 193 | + "tickPixelInterval": int, |
| 194 | + "tickPosition": basestring, |
| 195 | + "tickPositioner": JSfunction, |
| 196 | + "tickPositions": list, |
| 197 | + "tickWidth": int, |
| 198 | + "type": basestring, |
| 199 | +} |
| 200 | + |
| 201 | + |
156 | 202 | class ColorsOptions(BaseOptions):
|
157 | 203 | """ Special Case, this is simply just an array of colours """
|
158 | 204 | def __init__(self):
|
|
0 commit comments