@@ -173,12 +173,61 @@ def _to_untrimmed_dict(self, in_cls = None) -> dict:
173
173
return untrimmed
174
174
175
175
176
+ class NavigatorAccessibilityOptions (HighchartsMeta ):
177
+ """Accessibility options for the Navigator."""
178
+
179
+ def __init__ (self , ** kwargs ):
180
+ self ._enabled = None
181
+
182
+ self .enabled = kwargs .get ('enabled' )
183
+
184
+ @property
185
+ def _dot_path (self ) -> Optional [str ]:
186
+ """The dot-notation path to the options key for the current class.
187
+
188
+ :rtype: :class:`str <python:str>` or :obj:`None <python:None>`
189
+ """
190
+ return 'accessibility'
191
+
192
+ @property
193
+ def enabled (self ) -> Optional [bool ]:
194
+ """If ``True``, enables accessibility support for the navigator.
195
+ Defaults to ``True``.
196
+
197
+ :rtype: :class:`bool <python:bool>`
198
+ """
199
+ return self ._enabled
200
+
201
+ @enabled .setter
202
+ def enabled (self , value ):
203
+ if value is None :
204
+ self ._enabled = None
205
+ else :
206
+ self ._enabled = bool (value )
207
+
208
+ @classmethod
209
+ def _get_kwargs_from_dict (cls , as_dict ):
210
+ kwargs = {
211
+ 'enabled' : as_dict .get ('enabled' , None ),
212
+ }
213
+
214
+ return kwargs
215
+
216
+ def _to_untrimmed_dict (self , in_cls = None ) -> dict :
217
+ untrimmed = {
218
+ 'enabled' : self .enabled ,
219
+ }
220
+
221
+ return untrimmed
222
+
223
+
176
224
class Navigator (HighchartsMeta ):
177
225
"""The navigator is a small series below the main series, displaying a view of the
178
226
entire data set. It provides tools to zoom in and out on parts of the data as well as
179
227
panning across the dataset."""
180
228
181
229
def __init__ (self , ** kwargs ):
230
+ self ._accessibility = None
182
231
self ._adapt_to_updated_data = None
183
232
self ._enabled = None
184
233
self ._handles = None
@@ -193,6 +242,7 @@ def __init__(self, **kwargs):
193
242
self ._x_axis = None
194
243
self ._y_axis = None
195
244
245
+ self .accessibility = kwargs .get ('accessibility' , None )
196
246
self .adapt_to_updated_data = kwargs .get ('adapt_to_updated_data' , None )
197
247
self .enabled = kwargs .get ('enabled' , None )
198
248
self .handles = kwargs .get ('handles' , None )
@@ -215,6 +265,20 @@ def _dot_path(self) -> Optional[str]:
215
265
"""
216
266
return 'navigator'
217
267
268
+ @property
269
+ def accessibility (self ) -> Optional [NavigatorAccessibilityOptions ]:
270
+ """Options for configuring accessibility for the navigator.
271
+
272
+ :rtype: :class:`NavigatorAccessibilityOptions <highcharts_stock.options.navigator.NavigatorAccessibilityOptions>`
273
+ or :obj:`None <python:None>`
274
+ """
275
+ return self ._accessibility
276
+
277
+ @accessibility .setter
278
+ @class_sensitive (NavigatorAccessibilityOptions )
279
+ def accessibility (self , value ):
280
+ self ._accessibility = value
281
+
218
282
@property
219
283
def adapt_to_updated_data (self ) -> Optional [bool ]:
220
284
"""If ``True``, the navigator and scroll will adapt to updated data in the base
@@ -457,6 +521,7 @@ def y_axis(self, value):
457
521
@classmethod
458
522
def _get_kwargs_from_dict (cls , as_dict ):
459
523
kwargs = {
524
+ 'accessibility' : as_dict .get ('accessibility' , None ),
460
525
'adapt_to_updated_data' : as_dict .get ('adaptToUpdatedData' , None ),
461
526
'enabled' : as_dict .get ('enabled' , None ),
462
527
'handles' : as_dict .get ('handles' , None ),
@@ -476,6 +541,7 @@ def _get_kwargs_from_dict(cls, as_dict):
476
541
477
542
def _to_untrimmed_dict (self , in_cls = None ) -> dict :
478
543
untrimmed = {
544
+ 'accessibility' : self .accessibility ,
479
545
'adaptToUpdatedData' : self .adapt_to_updated_data ,
480
546
'enabled' : self .enabled ,
481
547
'handles' : self .handles ,
0 commit comments