Hi Wang Meng,
Unfortunately I don't know how to use the Google charts in China.
An alternative could be to use the Anychart widget, it can be used to plot Sankey diagrams.
See:
- https://docs.mendix.com/refguide/chart-widgets#any-chart
- https://plotly.com/javascript/sankey-diagram/
- https://appstore.home.mendix.com/link/app/106517/
You can create the required data-JSON through a microflow using an export mapping for example.
Hope this helps,
Jeroen
Dear Jeroen:
I tried simple json data below in anyChart -"sample data", but during running the app, sankey diagram is always in loading status, I'm not sure where is the problem.
Could you please help to give some suggestion.
thanks a lot.
[ {
"type": "sankey",
"orientation": "h",
"node": {
"pad": 15,
"thickness": 15,
"label": ["A1", "A2", "B1", "B2", "C1", "C2"],
"color": ["blue", "blue", "blue", "blue", "blue", "blue"]
},
"link": {
"source": [0, 1, 0, 2, 3, 3],
"target": [2, 3, 3, 4, 4, 5],
"value": [8, 4, 2, 8, 4, 2],
}
} ]