Closed JulienBacquart closed 1 week ago
Thanks - let me tackle a couple of points individually:
borderRadius
is not working, that is definitely a bug that I'll need to double check and resolve.allowDrillToNode
is actually intentional. allowDrillToNode
has been deprecated in Highcharts long before the Highcharts (JS) v.10.2 (the earliest version that Highcharts for Python works well with), and has in general been replaced with allowTraversingTree
(which should work).height
not accepting a percentage string looks to be a bug.Highcharts.getOptions().colors
, it looks like that property hasn't yet been implemented - I'll create a separate issue to include it in the next release.Thanks @hcpchris,
Makes sense, I opened a PR to update the JS demo with allowTraversingTree
: https://github.com/highcharts/highcharts/pull/21505
I took a look at height
not accepting a percentage string.
numeric()
in validator_collection/validators.py is doing:
if isinstance(value, str):
try:
value = float_(value)
except (ValueError, TypeError):
raise errors.CannotCoerceError(
'value (%s) cannot be coerced to a numeric form' % value
)
where float_
is the Python builtin float(), which does not support strings with the percent sign.
If it's something, you want to implement, it could look something like:
if (new_value := value.removesuffix('%')) != value:
return float(new_value) / 100
@JulienBacquart : FYI, some of the issues reported in this ticket have been fixed as of today's release of v.1.9.0. In particular:
distance
keywordborderRadius
height
as a percentage string issue.The Highcharts.getOptions().colors
analog still hasn't been implemented yet, but I expect to be including that in v.1.10 and have created a separate issue (#190). Given all of this, I'll be closing this issue for the time being. Hope this helps!
Hi @hcpchris ,
Trying to reproduce the Sunburst demo (see below because of the length):
allowDrillToNode
keyword has no effect and is not present in the output ofsunburst_chart.to_json()
Thus it's not possible to 'drill down' into the sunburst chart.borderRadius
keyword has no effect and is not present in the output ofsunburst_chart.to_json()
Also as notes:
'height': '100%'
In Python it will result in a crash, as a float value is expected.Highcharts.getOptions().colors
is used to retrieve the default colors of the chart, what would be the equivalent in Python ?