Class DygraphsJSPlotterAttribute

  • All Implemented Interfaces:
    java.lang.Cloneable, HasTypeConstraints, Typeable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable, Settable, ValueListener, WebExportable

    public class DygraphsJSPlotterAttribute
    extends JSPlotterAttribute
    Attribute for generating the HTML file with JavaScript to plot simulation results using the Dygraphs library. The HTML file is generated by "Export to Web". An @link IconLink attribute can be customized with the generated file to open the HTML page.

    Configure the export parameters by double-clicking on the attribute, then click the "Configure" button).

    dataJSON contains the data series to be plotted in the chart area of the page. Two JavaScript array formats are acceptable:

    • [{name:"series 1", value:[[x1, y1], [x2, y2], ..., [xn, yn]]}, {name:"series 2", value:[[x'1, y'1], [x'2, y'2], ..., [x'n, y'n]]}, ...]
    • [{name:"series 1", value:[{x:x1, y:y1}, {x:x2, y:y2}, ..., {x:xn, y:yn}]}, {name:"series 2", value:[{x:x'1, y:y'1}, {x:x'2, y:y'2}, ..., {x:x'n, y:y'n}]}, ...]
    eventsJSON contains the event information series to be annotated in the chart area. Only one JavaScript array format is acceptable:
    • [{name:"series 1", value:[{x:x1, y:y1, text:"event 1 info"}, {x:x2, y:y2, text:"event 2 info"}, ...]}, {...}, ...]
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Baobing (Brian) Wang
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)