From fb95f49f652e535ec1e0cfef34acf7c7e630e382 Mon Sep 17 00:00:00 2001 From: David Morris Date: Sat, 22 Apr 2017 15:17:14 +0200 Subject: [PATCH 1/3] Permit type yAxis option used for setting logarithmic scale --- highcharts/highstock/options.py | 1 + 1 file changed, 1 insertion(+) diff --git a/highcharts/highstock/options.py b/highcharts/highstock/options.py index 7b47e2a..10ec365 100644 --- a/highcharts/highstock/options.py +++ b/highcharts/highstock/options.py @@ -542,6 +542,7 @@ class yAxisOptions(BaseOptions): "tickmarkPlacement": basestring, "title": (Title, dict), "top": [int, float, basestring], + "type": bastestring, "units": list } From c117c930b44d9c2a71ddfb7d3f84df61f316b51a Mon Sep 17 00:00:00 2001 From: David Morris Date: Thu, 16 Nov 2017 18:25:12 -0700 Subject: [PATCH 2/3] Add comment string noting the reason for adding an undocumented keyword. --- highcharts/highstock/options.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/highcharts/highstock/options.py b/highcharts/highstock/options.py index 10ec365..4600ea6 100644 --- a/highcharts/highstock/options.py +++ b/highcharts/highstock/options.py @@ -542,6 +542,10 @@ class yAxisOptions(BaseOptions): "tickmarkPlacement": basestring, "title": (Title, dict), "top": [int, float, basestring], + # DEM 2017/11/16: Note that the 'type' keyword for highstock is + # undocumented yet appears to be supported, likely because of underlying + # shared code. This permits logarithmic Y-Axis scale which is + # frequently useful in stock charts. "type": bastestring, "units": list } From 4695ee0f5e03996dff232b5e0049c4cc52246602 Mon Sep 17 00:00:00 2001 From: David Morris Date: Thu, 16 Nov 2017 18:57:03 -0700 Subject: [PATCH 3/3] Fix typo in 'type' datatype --- highcharts/highstock/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highcharts/highstock/options.py b/highcharts/highstock/options.py index 4600ea6..4a21318 100644 --- a/highcharts/highstock/options.py +++ b/highcharts/highstock/options.py @@ -546,7 +546,7 @@ class yAxisOptions(BaseOptions): # undocumented yet appears to be supported, likely because of underlying # shared code. This permits logarithmic Y-Axis scale which is # frequently useful in stock charts. - "type": bastestring, + "type": basestring, "units": list }