Package | Description |
---|---|
org.pepstock.charba.client.callbacks |
All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.
|
org.pepstock.charba.client.configuration |
Contains all elements to configure a chart instance (know as chart options at instance level).
|
org.pepstock.charba.client.events |
Contains all events to interact with chart instance.
|
org.pepstock.charba.client.impl.callbacks |
Contains some callbacks implementations, available out-of-the box.
|
Modifier and Type | Method and Description |
---|---|
void |
AxisBuildTicksCallback.onAfterBuildTicks(Axis axis,
AxisItem item,
List<Double> ticks)
Callback that runs after ticks are created.
|
void |
CategoryAxisBuildTicksCallback.onAfterBuildTicks(Axis axis,
AxisItem item,
List<String> ticks)
Callback that runs after ticks are created.
|
void |
TimeAxisBuildTicksCallback.onAfterBuildTicks(Axis axis,
AxisItem item,
List<TimeTickItem> ticks)
Callback that runs after ticks are created.
|
void |
AxisCalculateTickRotationCallback.onAfterCalculateTickRotation(Axis axis,
AxisItem item)
Callback that runs after tick rotation is determined.
|
void |
AxisDataLimitsCallback.onAfterDataLimits(Axis axis,
AxisItem item)
Callback that runs after data limits are determined.
|
void |
AxisFitCallback.onAfterFit(Axis axis,
AxisItem item)
Callback that runs after the scale fits to the canvas.
|
void |
AxisDimensionsCallback.onAfterSetDimensions(Axis axis,
AxisItem item)
Callback that runs after dimensions are set.
|
void |
AxisTickToLabelConversionCallback.onAfterTickToLabelConversion(Axis axis,
AxisItem item)
Callback that runs after ticks are converted into strings.
|
void |
AxisUpdateCallback.onAfterUpdate(Axis axis,
AxisItem item)
Callback that runs at the end of the update process.
|
void |
BaseAxisBuildTicksCallback.onBeforeBuildTicks(Axis axis,
AxisItem item)
Callback that runs before ticks are created.
|
void |
AxisCalculateTickRotationCallback.onBeforeCalculateTickRotation(Axis axis,
AxisItem item)
Callback that runs before tick rotation is determined.
|
void |
AxisDataLimitsCallback.onBeforeDataLimits(Axis axis,
AxisItem item)
Callback that runs before data limits are determined.
|
void |
AxisFitCallback.onBeforeFit(Axis axis,
AxisItem item)
Callback that runs before the scale fits to the canvas.
|
void |
AxisDimensionsCallback.onBeforeSetDimensions(Axis axis,
AxisItem item)
Callback that runs before dimensions are set.
|
void |
AxisTickToLabelConversionCallback.onBeforeTickToLabelConversion(Axis axis,
AxisItem item)
Callback that runs before ticks are converted into strings.
|
void |
AxisUpdateCallback.onBeforeUpdate(Axis axis,
AxisItem item)
Callback called before the update process starts.
|
String |
TimeTickCallback.onCallback(Axis axis,
Date value,
String label,
int index,
List<TimeTickItem> values)
Changes the tick marks to include information about the data type.
|
String |
TickCallback.onCallback(Axis axis,
double value,
int index,
List<Double> values)
Changes the tick marks to include information about the data type.
|
String |
RadialPointLabelCallback.onCallback(Axis axis,
String item)
Callback function to transform data labels to point labels.
|
String |
CategoryTickCallback.onCallback(Axis axis,
String value,
int index,
List<String> values)
Changes the tick marks to include information about the data type.
|
Modifier and Type | Class and Description |
---|---|
class |
CartesianCategoryAxis
This object is used to map defined axis as category.
|
class |
CartesianLinearAxis
This object is used to map defined axis as linear.
|
class |
CartesianLogarithmicAxis
This object is used to map defined axis as logarithmic.
|
class |
CartesianTimeAxis
This object is used to map defined axis as time.
|
class |
RadialAxis
Radial axes are used specifically for the radar and polar area chart types.
These axes overlay the chart area, rather than being positioned on one of the edges. The linear scale is use to chart numerical data. As the name suggests, linear interpolation is used to determine where a value lies in relation the center of the axis. |
Modifier and Type | Method and Description |
---|---|
Axis |
IsLinearTick.getAxis()
Returns the axis instance.
|
Modifier and Type | Method and Description |
---|---|
List<Axis> |
Scales.getXAxes()
Returns the list of X axes.
|
List<Axis> |
Scales.getYAxes()
Returns the list of Y axes.
|
Modifier and Type | Method and Description |
---|---|
void |
SingleScaleOptions.setAxis(Axis axis)
Sets the single axis of chart.
|
void |
TimeSeriesScales.setXAxes(Axis... axes) |
void |
StackedScales.setXAxes(Axis... axes) |
void |
Scales.setXAxes(Axis... axes)
Sets an array of X axes.
|
void |
StackedScales.setYAxes(Axis... axes) |
void |
Scales.setYAxes(Axis... axes)
Sets an array of Y axes.
|
Modifier and Type | Method and Description |
---|---|
Axis |
AxisClickEvent.getAxis()
Returns the axis configuration instance if exists.
|
Constructor and Description |
---|
AxisClickEvent(NativeEvent nativeEvent,
ScaleItem item,
Axis axis)
Creates the event with axis related to the click
|
Modifier and Type | Method and Description |
---|---|
String |
NoSelectedDatasetTicksCallback.onCallback(Axis axis,
double value,
int index,
List<Double> values) |