Skip to content

Commit 17ced17

Browse files
authoredOct 31, 2016
Merge pull request #12 from ayamahmod/master
ColorAxis Error Fixed [Update highcharts.py] , Heatmap Hover Color Error Fixed [Update common.py]
2 parents ef0ba31 + 1445531 commit 17ced17

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎highcharts/highcharts/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ class Hover(CommonObject):
568568
"marker": (Marker, dict),
569569
"radius": int,
570570
"radiusPlus": int,
571+
"color": (ColorObject, basestring, dict),
571572
}
572573

573574
class States(CommonObject):

‎highcharts/highcharts/highcharts.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __init__(self, **kwargs):
110110
# Bind Base Classes to self
111111
self.options = {
112112
"chart": ChartOptions(),
113-
"colorAxis" : ColorAxisOptions(),
113+
#"colorAxis" : ColorAxisOptions(),
114114
"colors": ColorsOptions(),
115115
"credits": CreditsOptions(),
116116
#"data": #NotImplemented
@@ -270,6 +270,9 @@ def set_options(self, option_type, option_dict, force_options=False):
270270
self.options[option_type].update_dict(**option_dict)
271271
elif option_type in ["global" , "lang"]: #Highcharts.setOptions:
272272
self.setOptions[option_type].update_dict(**option_dict)
273+
elif option_type == 'colorAxis':
274+
self.options.update({'colorAxis': ColorAxisOptions()})
275+
self.options[option_type].update_dict(**option_dict)
273276
else:
274277
self.options[option_type].update_dict(**option_dict)
275278

0 commit comments

Comments
 (0)