Class Reference
IRIS for UNIX 2024.1.2
|
|
Private
Storage
|
Utility class that renders the various utility templates needed by a chart. Note: utility templates of the form 'zenReport...' have a number added to the template name to identify which chart they are a part of.
|
|
|
following need for IE support
Renders the 'zenReportDrawMarker' template, which creates a plot marker. This template takes 'shape', 'color', 'x', and 'y' parameters. Shape can be 'up','down','circle','square'.
Renders the 'zenReportXValueLabels' and 'zenReportXCategoryLabels' templates. These loop over the data and display the appropriate labels.
Renders the 'zenReportYValueLabels' and 'zenReportYCategoryLabels' templates. These loop over the data and display the appropriate labels.
Renders the zenReportFindScaleUnits template which finds the best scale units to use for given range.
Renders the 'zenReportGetMinValue' and 'zenReportGetMaxValue' templates which return the minimum and maximum data values across all series.
Renders the 'zenReportGetPlotX' template. This template takes 'val' as a parameter, and returns the x coordinate within the chart.
Renders the 'zenReportGetPlotY' template. This template takes 'val' as a parameter, and returns the y coordinate within the chart.
Renders the 'zenReportGetSeriesColor' template which takes a 'series' parameter. Color is determined by choosing the corresponding item in the list seriesColors. Color selection wraps around when the seriesColors list is exhausted.
Renders the 'zenReportGetSeriesCount' template which returns the number of series. Within a template, it is more efficient to use the $seriescount global variable than re-invoke this template.
Renders the 'zenReportGetSeriesSize' template which returns the number of series. Within a template, it is more efficient to use the $seriessize global variable than re-invoke this template.
Renders the 'zenReportGetXLabelText' template, which takes an 'item' parameter and returns the appropriate label text.
Renders the 'zenReportGetYLabelText' template, which takes an 'item' parameter and returns the appropriate label text.
Renders the 'zenReportYValueLines', 'zenReportYCategoryLines', 'zenReportXValueLines', and 'zenReportXCategoryLines' templates which are invoked as necessary to draw the gridlines.
Renders the 'util-log10' (log base 10) and 'util-log' (natural log) templates, both of which take a 'number' parameter.
Renders the 'util-min' and 'util-max' templates, which both take a 'nodes' parameter and return the maximum value across the nodes.
Renders the 'util-power' template which raises 'base' to the power 'power.' Warning: very slow implementation.
Entry method that renders all of the utility tempaltes provided by the other methods in this clas.