-
Notifications
You must be signed in to change notification settings - Fork 0
LaserTagVisualizations
LaserTagVisualizations in visualizations/visualizations.js is the base class for creating and updating visuals. See examples in the same folder.
Called to read data from the processor object, and create the visual. This function is called each time data is uploaded, so if previous data exists it should be cleaned up in this function. If the visual can be adjusted with a time range (via highlightTimeRange(startTime, endTime)), relevant data should be stored within the object so it can be filtered.
Called to show a full screen view of some data. Can be called by a created element, for instance on click, to show more info about what was just clicked on. Parameters include relevant data to show, the main container which to show a visual, and a details container which is shown to the right of the main container, to store additional data.
When called, element should update its visuals (if applicable) to adjust for the new start and end times. Data to re-show should be stored in an object variable from loadData(processor).
These functions may be useful in your custom implementation.
Sets up the fullscreen view, and hides for later use.
Called to update all objects which extend from LaserTagVisualizations. Calls the overridable functions defiend above.
Creates a LaserTagVisualization, and sets its targetElementId to target, which to draw visuals onto.
Retrieves the DOM element which this object is targeting to draw on.
Sets up the fullscreen modal with a title and data. (Note: chartType param is obsolete)
Returns metrics regarding the hits passed in.
Returns a string indicating a human readable score given the provided value between 0 to 100.