public class IlvBarChartRenderer extends IlvSimpleCompositeChartRenderer
IlvSingleBarRenderer
for
every data set in the connected data source. An IlvBarChartRenderer
supports three representation modes:
#SUPERIMPOSED
constant.#CLUSTERED
constant.#STACKED
constant.
ilvBarChartRenderer {
class : "ilog.views.chart.renderer.IlvBarChartRenderer";
annotation : "@#ilvDataLabelAnnotation";
autoTransparency : "false";
barShape : "QUADRILATERAL";
diverging : "false";
mode : "SUPERIMPOSED";
name : "<value>";
overlap : "3.0";
stacked100Percent : "false";
stackedByIndex : "false";
styles[0] : "@#ilvStyle1";
styles[1] : "@#ilvStyle2";
useCategorySpacingAtBorders : "false";
visible : "false";
visibleInLegend : "false";
widthPercent : "3.0";
YAxisIdx : "2";
}
Modifier and Type | Property and Description |
---|---|
IlvDataAnnotation |
annotation
Specifies a global annotation for all the data sets displayed by this renderer. |
boolean |
autoTransparency
Sets whether this renderer should use transparent default colors. |
int |
barShape
Sets the shape of the bars. |
java.lang.String |
class
Creates a new IlvBarChartRenderer ,
with a default bar width and the #CLUSTERED mode. |
boolean |
diverging
Specifies whether negative values are stacked separately from positive values. |
int |
mode
Sets the mode of this renderer. |
java.lang.String |
name
Sets the name of this renderer. |
double |
overlap
Modifies the overlapping amount. |
boolean |
stacked100Percent
Specifies the stacking mode. |
boolean |
stackedByIndex
Specifies whether the stacking is based on data set indices rather than on X values. |
IlvStyle[] |
styles
Sets the styles used by the child renderers. |
boolean |
useCategorySpacingAtBorders
Determines whether the category spacing is used also at the left and right borders. |
boolean |
visible
Toggles the visibility of this renderer. |
boolean |
visibleInLegend
Indicates whether the renderer appears in the legend. |
double |
widthPercent
Sets the width of the graphical representation of a data point. |
int |
YAxisIdx
Connects the specified renderer to the specified ordinate axis. |
Two stacking modes are available:
#setStacked100Percent
method.
public java.lang.String name
name : "<value>";
public double overlap
overlap
parameter can take values between
0
and 100
. It specifies the amount
by which bars overlap.
This method is meaningful only when the mode of the renderer is
set to #CLUSTERED
.
overlap : "3.0";
public boolean stacked100Percent
stacked100
is set to true
, the sum of all the y-values
for a given x-value is scaled to 100. Each bar represents the
percentage it contributes to this sum.
This method is meaningful only when the mode of the renderer is
set to #STACKED
.
stacked100Percent : "false";
mode
public boolean stackedByIndex
stackedByIndex
is set to true
, the Y values
are computed by accumulating the Y values with the same index, regardless
of their X values, and the X values of the second, third, etc. data sets
are ignored.
If stackedByIndex
is set to false
, the Y values
are computed by accumulating the Y values with the same X value,
regardless of their index in the data set.
This method is meaningful only when the mode of the renderer is
set to #STACKED
.
stackedByIndex : "false";
mode
public IlvStyle[] styles
styles[0] : "@#ilvStyle1";
styles[1] : "@#ilvStyle2";
IlvStyle
for an example of implementing a styles.public boolean useCategorySpacingAtBorders
true
, category spacing is not only used
between bars, but also beyond the leftmost and rightmost bars. If set to
false
(the default), this spacing is omitted. This setting
matters only if getWidthPercent
is less than 100.
useCategorySpacingAtBorders : "false";
public boolean visible
visible : "false";
public boolean visibleInLegend
The default value of this property is true
, which means
that the renderer will automatically create and add items to the legend.
CSS example:
visibleInLegend : "false";
public double widthPercent
widthPercent : "3.0";
public int YAxisIdx
YAxisIdx : "2";
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.