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 |
---|---|
Axis |
ScaleContext.getAxis()
Returns the axis instance where the callback must be invoked.
|
Modifier and Type | Method and Description |
---|---|
void |
AxisBuildTicksCallback.onAfterBuildTicks(Axis axis,
AxisItem item)
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 in the strings.
|
void |
AxisUpdateCallback.onAfterUpdate(Axis axis,
AxisItem item)
Callback that runs at the end of the update process.
|
void |
AxisBuildTicksCallback.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 in the 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<ScaleTickItem> 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 |
PointLabelCallback.onCallback(Axis axis,
String item,
int index)
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.
|
Constructor and Description |
---|
ScaleContext(Axis axis,
NativeObject nativeObject)
Creates the object with an envelop of the native object instance to be wrapped.
|
Modifier and Type | Class and Description |
---|---|
class |
CartesianAxis<T extends org.pepstock.charba.client.configuration.CartesianTick>
Axes are an integral part of a chart.
|
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 |
CartesianTimeSeriesAxis
This object is used to map defined axis as time series.
|
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.
|
Axis |
Scales.getAxisById(ScaleId scaleId)
Returns the scale with the id passed as argument or
null if not exist. |
Axis |
Scales.getAxisById(String scaleId)
Returns the scale with the id passed as argument or
null if not exist. |
Axis |
RadialAxis.getAxisElement() |
Axis |
CartesianLinearAxis.getAxisElement() |
Axis |
CartesianLogarithmicAxis.getAxisElement() |
Axis |
IsNumericAxis.getAxisElement()
Returns the axis instance.
|
Modifier and Type | Method and Description |
---|---|
List<Axis> |
Scales.getAxes()
Returns the list of X axes.
|
Modifier and Type | Method and Description |
---|---|
void |
StackedScales.setAxes(Axis... axes) |
void |
TimeSeriesScales.setAxes(Axis... axes) |
void |
Scales.setAxes(Axis... axes)
Sets an array of X axes.
|
Modifier and Type | Method and Description |
---|---|
Axis |
AxisClickEvent.getAxis()
Returns the axis configuration instance if exists.
|
Constructor and Description |
---|
AxisClickEvent(BaseNativeEvent nativeEvent,
ScaleItem item,
Axis axis,
ScaleValueItem value)
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) |