Dygraph as mendix widget

0
Is it possible to make widget with dygraph in mendix. if yes, please suggest me the steps  Any answer will be appreciated 
asked
4 answers
2

If you are able to implement this, then it should be possible.

For more information about how to build a widget you can have look on the documentation of Mendix and I saw there is an learning path on the academy: https://gettingstarted.mendixcloud.com/link/path/45

Do you have a specific problem?

answered
1

(Alternative route) In case the specific graph library does not have to be Dygraph,

you could also have a look at the Mendix chart widget in the App store

That widget supports out of the box types but also some custom plotly JSON based configurations.

Maybe this fits your use case too.

answered
1

Here's a helpful link for creating custom widgets.
https://docs.mendix.com/howto/custom-widget-development/

answered
0

Besides the standard widget documentation you need to get the data in the widget.

 

First get the data (sample from https://apidocs.mendix.com/7/client/mx.data.html)

 

mx.data.get({
    xpath: "//System.User",
    filter: {
        sort: [["Name", "asc"]],
        offset: 0,
        amount: 10
    },
    callback: function(objs) {
        console.log("Received " + objs.length + " MxObjects");
    }
});

 

And combine it with this example to change the data

 

answered