Mango HTML & Javascript Web Interface (7/8/2015)

Today I worked on dissecting the Mango bar chart.
http://10.14.4.52:8080/private-dashboards/test.shtm
I start with a point hierarchy.
The name of the data points do not matter, the XIDs do.
Inside the HTML, the XID is matched using a regex:
/xid/
This data point match configuration also matches to the data provider id of the graph: [1].
The graph then takes this point and populates the entire field with its model, meaning that multiple data points can be added with the same data provider id, and amcharts then creates a new bar on the chart using the same same configurations.
Apparently this works as long as the file is in the mango directory.
However, I needed to find a way to automatically load the group settings.
Currently, you need to select "Target Folder" from an un-ordered list in order for Mango to query the point hierarchy for points.
I found that this was because a datapointgroupconfoguration object is given the grouping information, like folder and path specifics, which is then oushed into the groupconfigurations array, which is accesed by the listviewconfiguration grouplist.
I have been a tempting to bypass this step, but I have not yet been successful.
I looked back at the API, and it seems that pressing this button calls a refresh() function, so I may have to manually do this on load in order to use my preset group setting.

Comments