Package ca.spatial.reportwriter
Class BoxAndWhiskerChartReport
java.lang.Object
ca.spatial.reportwriter.Report
ca.spatial.reportwriter.RangeIndicatorChartReport
ca.spatial.reportwriter.BoxAndWhiskerChartReport
- All Implemented Interfaces:
Selectable<Report>
,Comparable<Report>
Create a chart showing box and whisker statistical data
along with account values as a red line and circle.

Note that this class is new and is subject to change.
- See Also:
RangeIndicatorChartReport
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.spatial.reportwriter.Report
Report.GetNodesAt
-
Field Summary
FieldsFields inherited from class ca.spatial.reportwriter.Report
AREA, LINE, PIE, SIDE_BY_SIDE_BARS, STACKED_BARS
-
Constructor Summary
ConstructorsConstructorDescriptionBoxAndWhiskerChartReport(String filename, String title, AttributeStore as, String units, String xCaption, String bwCaption, String legendCaption, String valueExpression, String categoryColumn, String[] categories, String[] categoryNames, int numPeriods, double[][] bwData, boolean annualize, String html)
Show a box and whisker diagram along with each category. -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
String[]
getTypes()
An accessor function to retrieve the list of report types supported by this report.void
setBwCaption(String caption)
void
setBwData(double[][] bwData)
Methods inherited from class ca.spatial.reportwriter.RangeIndicatorChartReport
doReport, getCategories, getCategoryColumn, getCategoryNames, getExpression, getHTMLText, getLegendCaption, getNumPeriods, getThreshData, getUnits, getXCaption, isAnnualize, setAnnualize, setCategories, setCategoryColumn, setCategoryNames, setExpression, setHTMLText, setLegendCaption, setNumPeriods, setUnits, setXCaption
Methods inherited from class ca.spatial.reportwriter.Report
addDefaultParam, chartImg, compareTo, csvLink, doesAnyTypes, doesCSV, doesGIF, doesHTML, doesPNG, doesType, encodeFileURL, encodeURL, endMainContent, escapeRegexChars, footer, formatColumnHeadings, formatColumnHeadings, getAdditionalFiles, getAttributeStore, getBasepart, getBasepart, getDefaultFilename, getDisplayFormat, getExtension, getExtension, getFilename, getFolderpart, getFolderpart, getLength, getNamepart, getNamepart, getPathToRoot, getReportFor, getTitle, header, htmlText, indexLink, interpolateParams, isDhandler, isIndexed, isSelected, parentIndex, patternToRegex, setAttributeStore, setDefaultParams, setDisplayFormat, setIndexed, setSelected, setTitle, toString, uniqueLabels
-
Field Details
-
TYPES
-
-
Constructor Details
-
BoxAndWhiskerChartReport
public BoxAndWhiskerChartReport(String filename, String title, AttributeStore as, String units, String xCaption, String bwCaption, String legendCaption, String valueExpression, String categoryColumn, String[] categories, String[] categoryNames, int numPeriods, double[][] bwData, boolean annualize, String html)Show a box and whisker diagram along with each category. The box and whisker information is an array of six numbers for each class. The array includes: mean, median, q1, q3, minimum, maximum. If the mean or median values are set to the value of Double.Nan then these indicators will not be drawn.- Parameters:
filename
- The name to save the filetitle
- The report titleunits
- Units to be displayed on the y axisxCaption
- the caption on the x axisbwCaption
- The legend caption for the box and whisker datalegendCaption
- The legend caption for the simulation datavalueExpression
- An expression that defines the numeric values in the chart.categoryColumn
- A column that contains the categories.categories
- The columns from input datasetcategoryNames
- The names to be placed on the xaxis for each categorynumPeriods
- The number of periods of data to report.bwData
- The box and whisker data, organized first by category, and then by the six elements mentioned aboveannualize
- A flag to indicate if the values should be annualized. If true then values from period 0 (prior to the start of the simulation) are not shown. All other values are divided by the width of the period.html
- Additional HTML text to be displayed in the report.
-
-
Method Details
-
setBwData
public void setBwData(double[][] bwData) -
getBwData
public double[][] getBwData() -
getBwCaption
-
setBwCaption
-
getTypes
Description copied from class:Report
An accessor function to retrieve the list of report types supported by this report. See the documentation for the TYPES variable for the list of sub-types.- Overrides:
getTypes
in classRangeIndicatorChartReport
-