If you haven't changed the default settings for dashboards in system settings try this
<img src="/modules/dashboards/web/public/<your img file>" />
The best place to store your image files as well as all the other files you are using in your dashboard is in the overrides dir. This way when you upgrade Mango you don't have to worry about your files being deleted.
The desire to have a framework that is much easier to work with and have the dashboard development process to be much faster. Angular makes building HTML based dashboards accessible to people with even just an entry level understanding. It doesn't mean they will be developing Angular directives but using the ones we've created are really easy.
Thank you a lot for telling me about excel-reports. It works very well and I managed to create a satisfying template to show the information that I want to. There is only one problem. This is my first web programming project, so please bear with my silly questions, but how would I go about making a button on a website run the report and then download the report that was created.
Thank you both for your help. Do you happen to know if there is documentation about how to modify "timePresetPicker"? I would like to have three buttons (HH, WW, MM) that would make the chart represent the data in their respective time frame, but with timePresetPicker I have to use a dropdown menu that is populated with lots of values I don't want.
Is there possibly different types of timePickers than timePresetPicker?
Also do you happen to know why "providerManager.refreshProviders();" under:
I mispoke in my last post, you should be able to use 1 web socket for all your data point values. If you review the web/js/mango-2.0/RealtimeDataProvider.js file in the Dashboards module you can see how this would work. Basically you just need 1 web socket and can then send additional registration requests for each data point you want.
The next version of the Dashboards module (1.1.1) will contain an example of how to use 1 web socket for all point values captured within Mango.
The example in the dashboards module in web/tutorials/dataPointChart.shtm will get you started. Once you have an understanding of how that works I can provide a slightly more advanced example that will show you how to manipulate the data.
There are a few things you need to know about using our REST api from a host other than Mango.
You will need to setup the CORS filter to allow cross site requests into Mango. You will need to allow all the various headers that you want to use. Checkout the classes/mangoApiHeaders.properties and the web/dox folder to see how the override-web.xml file should work. Be careful as the early releases of 2.6.0 beta have this filed named web-override.xml (which is wrong).
You will need to use the REST api to login to Mango via your remote server and then retain the session cookie to pass back to mango on any future requests.
Be sure to include the password header in the CORS configuration as you will most likely need to use this to login.
In the future we are planning to use OAUTH but this has not been a high priority for us yet.