question about google chart in Mendix

0
Hi,  currently, i’m using Google Sankey Diagram for mendix application developing,   and the application will be used in China, because of  Chinese network visiting limitation,  Sankey Daiagram can’t be displayed normally in local network. do you have some suggestions for that, or whether there are some other Sankey Diagrms which can be used in Chinese network.   thanks a lot  
asked
2 answers
0

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

answered
0

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],
                }
}  ]

 

answered