| ... | ... | @@ -195,7 +195,7 @@ class BaseChart(object): |
|
|
|
|
|
|
|
These class properties are converted to HTML attributes and sent to the browser client; [[The main JavaScript file for the browser app|https://github.com/alanmitchell/bmon/blob/master/bmsapp/static/bmsapp/scripts/bmsapp.coffee]] reads these attributes and controls the user interface accordingly.
|
|
|
|
|
|
|
|
### Updating the Main Chart or Report Content
|
|
|
|
### Updating the Main Chart/Report Content
|
|
|
|
|
|
|
|
As the user changes inputs in the browser application, the main chart or report requires updating. When an update is required, the browser makes a request to the server `reports/results/` URL, passing all of the user's inputs to the server. The server responds with JSON content created from the `result()` method for the particular chart type being viewed. This content was described above in the Report/Chart Creation section and consists of an HTML string and list of objects for the browser to create. Here is the CoffeeScript code in `bmsapp.coffee` that requests that content from the server, inserts the HTML in the `results` div and then creates the requested browser objects (Highcharts charts, Highstock charts, and Dashboards.)
|
|
|
|
|
| ... | ... | |