I using JDK 11, Vaadin 21 and the version 2.3.0 of this plugin. When I add a line chart from the example on my vertical layout, nothing shows up. There are no errors. Does anyone know why?
Can you please check the JSON generated?
SOChart soChart = new SOChart() {
@Override
protected String customizeJSON(String json) throws Exception {
System.err.println(json); // Or use some JSON lib to pretty-print
return super.customizeJSON(json);
}
};
I have the same problem. I using JDK 17, Vaadin 23 and the version 2.4.1 of this plugin. I pasted you code and JSON generated. In DOM I see that tag doesnt has any children tags. I see only this <so-chart style="width: 800px; height: 500px;"></so-chart>
Maybe I should loading something with npm?
This is my first time trying to use external components.
Hello Syam!
Thanks for the addon. But unfortunately I have the same problem with version 2.4.1: With a new vaadin starter project, when I try to add the heatmap example to the Dashboard, nothing shows up. No errors. Here’s the generated Json:
{“dataset”:{“source”:{“d1”:1,“d2”:2}}
,“legend”:[{“id”:1,“show”:true}]
,“tooltip”:[{“id”:2,“show”:true}]
,“xAxis”:[{“id”:11,“gridIndex”:0,“data”:1,“type”:“category”}]
,“yAxis”:[{“id”:12,“gridIndex”:0,“data”:2,“type”:“category”}]
,“grid”:[{“id”:10,“show”:true}]
,“series”:[{“name”:“Chart 1”,“id”:4,“data”:3,“type”:“heatmap”,“xAxisIndex”:0,“yAxisIndex”:0,“coordinateSystem”:“cartesian2d”,“label”:{“show”:true,“inside”:false}}]
,“visualMap”:[{“id”:5,“calculable”:true,“type”:“continuous”,“seriesIndex”:0,“min”:25,“max”:37,“orient”:“horizontal”,“left”:“center”,“top”:“bottom”}]
}
Thanks for your help!
Hi. Did you find some another component ‘chart’, which work in you project? Or maybe, did you find another solution?
Did you add com.storedobject to the white-list?
Oh! You’re right. I missed this moment. Thank you very much
Sorry Syam and thank you for your time Syam. I forgot to white list the groupId.
Take care!
You are welcome