You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I load a NiceGUI application with this chart embedded, I am getting the follow error (in the browser console, NiceGUI itself seems happy enough):
vue.global.prod.js:5 Error: Highcharts error #17: www.highcharts.com/errors/17/?missingModuleFor=treegraph
- missingModuleFor: treegraph
at Object.<anonymous> (highcharts.js:8:138)
at M (highcharts.js:8:2591)
at o (highcharts.js:8:61)
at Q.initSeries (highcharts.js:8:197051)
at highcharts.js:8:212230
at Proxy.forEach (<anonymous>)
at Q.firstRender (highcharts.js:8:212208)
at Q.<anonymous> (highcharts.js:8:196969)
at M (highcharts.js:8:2591)
at Q.init (highcharts.js:8:196387)
I take this to mean that the vue library for treegraph is not loaded. However, I can find the path .venv/lib/python3.11/site-packages/nicegui_highcharts/lib/highcharts/modules/treegraph.js and since the Highchart class itself is initialised with the following, I was expecting this to work:
So I'm a bit lost as to why I am getting the issue.
Just to confirm, if I change the graph type to e.g. line, it does render. Obviously, the series isn't compatible, but I then at least see the axes rendered.
The text was updated successfully, but these errors were encountered:
TypeError: Cannot read properties of undefined (reading 'prototype')
at treegraph.js:8:1961
at i (treegraph.js:8:399)
at treegraph.js:8:1836
at treegraph.js:8:250
at treegraph.js:8:302
I think that is a highcharts error, possibly related to this. For now,. I'll see if I can make do with another chart type. Thanks!
Adding extras=['treegraph'] is the correct way to add the tree graph dependency.
But I don't know why Highcharts is complaining about reading a prototype property. 😕
I've got a
treegraph
chart (simplified), which I tested in JSFiddle and then adapted for python:When I load a NiceGUI application with this chart embedded, I am getting the follow error (in the browser console, NiceGUI itself seems happy enough):
I take this to mean that the vue library for
treegraph
is not loaded. However, I can find the path.venv/lib/python3.11/site-packages/nicegui_highcharts/lib/highcharts/modules/treegraph.js
and since theHighchart
class itself is initialised with the following, I was expecting this to work:And indeed, I can find the following entry in
ui.highchart.exposed_libraries
:So I'm a bit lost as to why I am getting the issue.
Just to confirm, if I change the graph type to e.g.
line
, it does render. Obviously, the series isn't compatible, but I then at least see the axes rendered.The text was updated successfully, but these errors were encountered: