Package | Description |
---|---|
be.ceau.chart.options.scales |
Scales in v2.0 of Chart.js are significantly more powerful, but also
different than those of v1.0.
|
Modifier and Type | Method and Description |
---|---|
XAxis<T> |
XAxis.setBarPercentage(BigDecimal barPercentage)
Percent (0-1) of the available width each bar should be within the
category percentage.
|
XAxis<T> |
XAxis.setCategoryPercentage(BigDecimal categoryPercentage)
Percent (0-1) of the available width (the space between the gridlines for
small datasets) for each data-point to use for the bars.
|
XAxis<T> |
XAxis.setDisplay(Boolean display)
If true, show the scale.
|
XAxis<T> |
XAxis.setGridLines(GridLines gridLines) |
XAxis<T> |
XAxis.setId(String id)
Id of the axis so that data can bind to it
|
XAxis<T> |
XAxis.setStacked(Boolean stacked)
If true, bars are stacked on the x-axis
|
XAxis<T> |
XAxis.setTicks(T ticks)
Defines options for the tick marks that are generated by the axis
|
XAxis<T> |
XAxis.setType(String type)
As defined in Scales.
|
static XAxis<LinearTicks> |
BarScale.xAxis()
|
Modifier and Type | Method and Description |
---|---|
List<XAxis<LinearTicks>> |
BarScale.getxAxes() |
Modifier and Type | Method and Description |
---|---|
BarScale |
BarScale.addxAxes(XAxis<LinearTicks> xAxis) |
Modifier and Type | Method and Description |
---|---|
BarScale |
BarScale.setxAxes(List<XAxis<LinearTicks>> xAxes)
The bar chart officially supports only 1 x-axis but uses an array to keep
the API consistent.
|
Copyright © 2017. All rights reserved.