Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Hi!

With this custom chart widget i've been having some other problems. First is that if i add a dataset to the widget i get an error like this:

"TYPEERROR: $SCE.TRUSTAS(...).$$UNWRAPTRUSTEDVALUE IS NOT A FUNCTION"

I don't know why it appears and how to solve it 

Besides this, if i don't add any dataset, the widget remains loading and doesn't show anything.

It would be great if you can help me with this.

Thanks in advace.

Environment version 8.0
in Cockpit, Dashboard and Console by (320 points)

1 Answer

0 votes
 
Best answer
Dear kmorabul,

The custom chart widget is made to use some data and show it according to the API you can find here:
https://knowage-suite.readthedocs.io/en/8.0/functionalities-guide/cockpit/index.html#custom-chart-widget

Usually you get that error when you just provide a dataset and no other informations, you can avoid it adding some html and js code (you can just define a variable if you just want to test it).
If you don't add any dataset it wont be able to get any so it will wait for data and keep on loading. The easiest way (if you just want to test it again, is to add any DS you got).
Without data or js informations the custom chart is not meant to work.

Regards
by (11.3k points)
selected by
...