On what page is the var1.value located?
You can see the correct path to it by entering dmx.app.data in the console. So if it’s a content page it will be content.var1.value.
last one and then I hope I am out of your hair for today. Syntax for now using it with the charts code. I need to use myVar that has all the data in and replace [‘Shirts’, ‘Cardigans’, ‘Chiffons’, ‘Pants’, ‘Heels’, ‘Socks’] in this section:
You need to initialize the chart after the data has finished loading. So you need to wrap your chart script in a function like:
function chartInit() {
// Initialize the echarts instance based on the prepared dom
var myChart = echarts.init(document.getElementById('main'));
...
...
...
myChart.setOption(option);
}
and then load it onsuccess of the server connect component on the page…
are you sure you have the required skills to use third party script like this and all its option?
What is missing from the charts component in Wappler?
Thanks, building my skills as I go along with your help. Was always able to get things done by getting help from you or others.
Cannot format numbers with thousand seperator with Chart.js (Wappler Charts) and also cannot style easily. There are methods to add number formatting that I found in forums, but the way it is implimented in Wappler does not allow that type of customisation.
Let me use your code advise and see if I can get the chart showing. Thanks
I also put the chartInit() to run at onclick of the button long after data loaded and it does the same, so it seems to be the parsed data that is the problem and not only when ithe chart is loaded.