|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode com.imsl.chart.Data com.imsl.chart.Bar com.imsl.chart.qc.ParetoChart
public class ParetoChart
ParetoChart
is a Pareto bar chart.
The bars are sorted into descending order.
It is used in quality assurance tracking to identify and prioritize areas
of greatest impact. It extends Bar
.
The method addCumulativeLine
adds a cumulative percentage line to the chart.
This is the percent of defects accounted for by the current item and items to its left.
If the cumulative percentage line is added, a second axis is created on the right.
This is required because the units for this line are 0% to 100%.
The units of the original axis (on the left) are the number of defects.
Field Summary |
---|
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
Constructor Summary | |
---|---|
ParetoChart(AxisXY axisBar,
String[] labels,
int[] numberDefects)
Constructs a Pareto chart. |
|
ParetoChart(AxisXY axisBar,
String[] labels,
int[] numberDefects,
double maximumFractionCategoriesPlotted,
String otherLabel)
Constructs a Pareto chart showing only the most important bars. |
|
ParetoChart(AxisXY axisBar,
String[] labels,
int[] numberDefects,
int maximumCategoriesPlotted,
String otherLabel)
Constructs a Pareto chart showing only a limited number of bars. |
Method Summary | |
---|---|
Data |
addCumulativeLine()
Creates a new right-side axis and adds a cumulative line to it. |
Data |
addCumulativeLine(AxisXY axisCumulativeLine)
Adds a cumulative line to the specified axis. |
AxisXY |
createCumulativeLineAxis()
Creates a new axis to hold a cumulative line. |
AxisXY |
getCumulativeAxis()
Returns the "CumulativeAxis" attribute. |
Data |
getCumulativeLine()
Returns the "CumulativeLine" attribute. |
Methods inherited from class com.imsl.chart.Bar |
---|
dataRange, getBarData, getBarSet, getBarSet, getBarSet, paint, setBarData, setLabels, setLabels |
Methods inherited from class com.imsl.chart.Data |
---|
formatLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParetoChart(AxisXY axisBar, String[] labels, int[] numberDefects)
axisBar
- the AxisXY
parent of this node.
Its formatting is changed to integer formatting.labels
- a String
array which contains the labels for
the data values.numberDefects
- an int
array which contains the number of defects.
These data values must be in the same order as the values in labels
,
but they do not need to be sorted.
IllegalArgumentException
- is thrown if the length
of the labels
and numberDefects
arrays are unequal or
if any element of numberDefects
is negative.public ParetoChart(AxisXY axisBar, String[] labels, int[] numberDefects, double maximumFractionCategoriesPlotted, String otherLabel)
axisBar
- the AxisXY
parent of this node.
Its formatting is changed to integer formatting.labels
- a String
array which contains the labels for
the data values.numberDefects
- an int
array which contains the number of defects.
These data values must be in the same order as the values in labels
,
but they do not need to be sorted.maximumFractionCategoriesPlotted
- is maximum cumulative fraction to be represented
in separate categories. The remaining categories are consolidated into
a single bar. A typical value for this argument is 0.80.
This must be at least 0 and no more than 1.otherLabel
- is the label of the bar holding total defect count of the
categories not plotted.
IllegalArgumentException
- is thrown if the length
of the labels
and numberDefects
arrays are unequal or
if any element of numberDefects
is negative.public ParetoChart(AxisXY axisBar, String[] labels, int[] numberDefects, int maximumCategoriesPlotted, String otherLabel)
axisBar
- the AxisXY
parent of this nodelabels
- a String
array which contains the labels for
the data values.numberDefects
- an int
array which contains the number of defects.
These data values must be in the same order as the values in labels
,
but they do not need to be sorted.maximumCategoriesPlotted
- is the maximum number of categories to be plotted.
Categories with smaller number of defects are consolidated into
a single bar. The total number of bars will be
maximumCategoriesPlotted
+1.
This must be at least 0 and no more than the length of
numberDefects
.otherLabel
- is the label of the bar holding total defect count of the
categories not plotted.
IllegalArgumentException
- is thrown if the length
of the labels
and numberDefects
arrays are unequal or
if any element of numberDefects
is negative.Method Detail |
---|
public Data addCumulativeLine()
Data
object containing the cumulative percentage line.public Data addCumulativeLine(AxisXY axisCumulativeLine)
axisCumulativeLine
- is the axis for the cumulative line.public AxisXY createCumulativeLineAxis()
public AxisXY getCumulativeAxis()
AxisXY
object containing the cumulative line.public Data getCumulativeLine()
Data
object.
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |