Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
demoVideoExampleCode not displaying charts
-
I'm using the build a dashboard video to try and get the mango javascript API example to work. All the rest of the examples in the "custom dashboards" work. including the REST API examples.
but, i cant get the demoVideoExampleCode to work. I've tried to enter the data points manually and using the demoMangoConfig.json in the private folder.
here is the tutorial I'm following:
http://infiniteautomation.com/wiki/doku.php?id=graphics:api:dashboardcreationhere is what I'm seeing in my browser... what could I be doing wrong? The temperature and voltage variables have values.
-
That code was not updated in the last release when we made some changes to the Data Provider javascript classes.
Add the following as the first 2 lines of the Data Providers script tags area.
<!-- Data Providers --> <script type="text/javascript" src="/modules/dashboards/web/js/extend.js"></script> <script type="text/javascript" src="/mango-javascript/v1/dataProvider.js"></script>
It looks like you are using Chrome? If so I suggest you use the the Developer Tools and reload the page. This will show you any errors that exist. Also it will allow you to configure the window to not use the cache while you are testing/developing javascript.
Open the Developer Tools by using the menus View->Developer->Developer Tools.
Hope this helps,
Terry