Support multiple embedded graph widgets on the same page. This required two changes to avoid collisions with shared global resources:
* Make each plot generate a unique drilldown callback name for itself. These need to be unique because they all get stuck into as global methods. This also required passing the callback name to the server and having the server use it when generating callback code.
* Make the server generate a unique name for the image map, when generating HTML to return to the client. These image maps all sit in the document and thus must have unique names. It generates the map name from the passed-in drilldown name.
Since this change required passing around yet another piece of information to describe a plot in graphing_utils.py, I gathered all the parameters describing a plot into new parameter object classes, MetricsPlot and QualificationHistogram, rather than just extending the method signature of a bunch of methods. As usual, the natural next step is to move functionality into the classes, which would make graphing_utils much cleaner I believe. But I'm leaving that for later.
Signed-off-by: Steve Howard <showard@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3061 592f7852-d20e-0410-864c-8624ca9c26a4
7 files changed