The Home page has a number of standard widgets, including a Line Chart widget. I want to set up a new widget similar to this. I’d like to pull information in the same way and pass it off to a dojo graphic, like Line Chart does.
However, I don’t see how the data is being obtained from the database and passed to the chart. The Line Chart widget has a _doChart() function that renders the chart, and that function is called from Sage/UI/Dashboard/ChartingWidget within the Sage-Combined.js code, but when it is called the values for the chart are already stored in a data parameter.
Does anyone know where the dashboard page gathers this data and puts it into the parameter? If I wanted to have the page call my code (let’s say “_doGraphic&rdquo , how would I get it to do that?
Thanks for your help! |