public class BarChartOptions extends ChartOptions
Constructor and Description |
---|
BarChartOptions() |
Modifier and Type | Method and Description |
---|---|
Number |
getBarPercentage()
Gets the barPercentage
|
Number |
getBarThickness()
Gets the barThickness
|
Number |
getCategoryPercentage()
Gets the categoryPercentage
|
Number |
getMaxBarThickness()
Gets the maxBarThickness
|
CartesianScales |
getScales()
Gets the options of cartesian scales
|
boolean |
isOffsetGridLines()
Gets the offsetGridLines
|
void |
setBarPercentage(Number barPercentage)
Sets the barPercentage
|
void |
setBarThickness(Number barThickness)
Sets the barThickness
|
void |
setCategoryPercentage(Number categoryPercentage)
Sets the categoryPercentage
|
void |
setMaxBarThickness(Number maxBarThickness)
Sets the maxBarThickness
|
void |
setOffsetGridLines(boolean offsetGridLines)
Sets the offsetGridLines
|
void |
setScales(CartesianScales scales)
Sets the cartesian scales
|
getElements, getTitle, getTooltip, setElements, setTitle, setTooltip
public Number getBarPercentage()
public void setBarPercentage(Number barPercentage)
barPercentage
- Percent (0-1) of the available width each bar should be within the category width.
1.0 will take the whole category width and put the bars right next to each other.public Number getCategoryPercentage()
public void setCategoryPercentage(Number categoryPercentage)
categoryPercentage
- Percent (0-1) of the available width each category should be within the sample width.public Number getBarThickness()
public void setBarThickness(Number barThickness)
barThickness
- Manually set width of each bar in pixels.
If not set, the base sample widths are calculated automatically so that they take the full available widths without overlap.
Then, the bars are sized using barPercentage and categoryPercentage.public Number getMaxBarThickness()
public void setMaxBarThickness(Number maxBarThickness)
maxBarThickness
- Set this to ensure that bars are not sized thicker than this.public boolean isOffsetGridLines()
public void setOffsetGridLines(boolean offsetGridLines)
offsetGridLines
- If true, the bars for a particular data point fall between the grid lines.
The grid line will move to the left by one half of the tick interval.
If false, the grid line will go right down the middle of the bars.public CartesianScales getScales()
public void setScales(CartesianScales scales)
scales
- The CartesianScales
objectCopyright © 2018. All rights reserved.