|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.chart.series.Series<M>
com.sencha.gxt.chart.client.chart.series.MultipleColorSeries<M>
com.sencha.gxt.chart.client.chart.series.BarSeries<M>
M - the data type used by this seriespublic class BarSeries<M>
Creates a Bar Chart. A Bar Chart is a useful visualization technique to display quantitative information for different categories that can show some progression (or regression) in the data set.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sencha.gxt.chart.client.chart.series.Series |
|---|
Series.LabelPosition |
| Constructor Summary | |
|---|---|
BarSeries()
Creates a bar Series. |
|
| Method Summary | |
|---|---|
void |
addYField(ValueProvider<M,? extends Number> yField)
Adds a data field for the y axis of the series. |
void |
drawSeries()
Draws the series for the current chart. |
double |
getBarGirth()
Calculates the girth of bars in the series. |
double |
getGroupGutter()
Returns the gutter between group bars. |
double |
getGutter()
Returns the gutter between bars. |
double[] |
getGutters()
Returns the axis insets of the series. |
ArrayList<String> |
getLegendTitles()
Returns the list of titles used in the legend of the series. |
ValueProvider<M,? extends Number> |
getyField(int index)
Returns the value provider for the y-axis of the series at the given index. |
List<ValueProvider<M,? extends Number>> |
getyFields()
Returns the list of value providers for the y-axis of the series. |
void |
hide(int yFieldIndex)
Hides the given y field index from the series. |
void |
highlight(int yFieldIndex)
Highlights the series at the given index. |
void |
highlightAll(int index)
Highlights all of the items in the series. |
boolean |
isColumn()
Returns whether or not the series is a column series. |
boolean |
isStacked()
Returns whether or not the series is stacked. |
void |
setColumn(boolean column)
Sets whether or not the series is a column series. |
void |
setGroupGutter(double groupGutter)
Sets the gutter between group bars. |
void |
setGutter(double gutter)
Sets the gutter between bars. |
void |
setLegendTitle(String title)
Sets the series title used in the legend. |
void |
setLegendTitles(List<String> legendTitles)
Sets the list of labels used by the legend. |
void |
setStacked(boolean stacked)
Sets whether or not the series is stacked. |
void |
show(int yFieldIndex)
Shows the given y field index from the series. |
void |
unHighlight(int yFieldIndex)
Removes highlighting from the given index. |
void |
unHighlightAll(int index)
UnHighlights all items in the series. |
boolean |
visibleInLegend(int index)
Returns whether or not the given index is visible in legend. |
| Methods inherited from class com.sencha.gxt.chart.client.chart.series.MultipleColorSeries |
|---|
addColor, addColor, getColor, getColors, removeColor, removeColor, setColor |
| Methods inherited from class com.sencha.gxt.chart.client.chart.series.Series |
|---|
addSeriesHandler, addSeriesItemOutHandler, addSeriesItemOverHandler, addSeriesSelectionHandler, calculateBBox, delete, getBBox, getChart, getHighlighter, getLabelConfig, getLegendNames, getRenderer, getStroke, getStrokeWidth, getToolTip, getToolTipConfig, getXField, getYAxisPosition, highlightedState, isHighlighting, isShownInLegend, onMouseDown, onMouseMove, onMouseOut, removeToolTip, setChart, setHighlighter, setHighlighting, setLabelConfig, setRenderer, setShownInLegend, setStroke, setStrokeWidth, setToolTipConfig, setXField, setYAxisPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BarSeries()
Series.
| Method Detail |
|---|
public void addYField(ValueProvider<M,? extends Number> yField)
yField - the value provider for the data on the y axispublic void drawSeries()
Series
drawSeries in class Series<M>public double getBarGirth()
public double getGroupGutter()
public double getGutter()
public double[] getGutters()
Series
getGutters in class Series<M>public ArrayList<String> getLegendTitles()
Series
getLegendTitles in class Series<M>public ValueProvider<M,? extends Number> getyField(int index)
index - the index of the value provider
public List<ValueProvider<M,? extends Number>> getyFields()
public void hide(int yFieldIndex)
Series
hide in class Series<M>yFieldIndex - the index of the y fieldpublic void highlight(int yFieldIndex)
Series
highlight in class Series<M>yFieldIndex - the index to be highlightedpublic void highlightAll(int index)
Series
highlightAll in class Series<M>index - the index of the seriespublic boolean isColumn()
public boolean isStacked()
public void setColumn(boolean column)
column - true if the series is a column seriespublic void setGroupGutter(double groupGutter)
groupGutter - public void setGutter(double gutter)
gutter - the gutter between barspublic void setLegendTitle(String title)
title - the series title used in the legendpublic void setLegendTitles(List<String> legendTitles)
legendTitles - the list of labelspublic void setStacked(boolean stacked)
stacked - whether or not the series is stackedpublic void show(int yFieldIndex)
Series
show in class Series<M>yFieldIndex - the index of the y fieldpublic void unHighlight(int yFieldIndex)
Series
unHighlight in class Series<M>yFieldIndex - the index to have its highlighting removedpublic void unHighlightAll(int index)
Series
unHighlightAll in class Series<M>index - the index of the seriespublic boolean visibleInLegend(int index)
Series
visibleInLegend in class Series<M>index - the index to determine visible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||