Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.annotation |
Contains all classes to activate the
AnnotationPlugin.ID plugin (AKA
chartjs-plugin-annotation.js ) for CHART.js. |
org.pepstock.charba.client.annotation.callbacks |
Contains the
AnnotationPlugin.ID plugin callback interfaces to catch events. |
org.pepstock.charba.client.callbacks |
All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.
|
org.pepstock.charba.client.colors |
Contains the enumerations of HTML and GWT Material colors, to consume out-of-the-box, and utilities to create and manage own
colors and classes to define gradients of patterns for charts.
|
org.pepstock.charba.client.commons |
Core classes to manage the inter-operations with java script code.
|
org.pepstock.charba.client.configuration |
Contains all elements to configure a chart instance (know as chart options at instance level).
|
org.pepstock.charba.client.controllers |
Contains all classes to manage the implementations of controllers.
|
org.pepstock.charba.client.data |
Contains all elements to configure the datasets of a chart instance (know as chart data at instance level).
|
org.pepstock.charba.client.datalabels |
Contains all classes to activate the
DataLabelsPlugin.ID plugin (AKA
chartjs-plugin-datalabels.js ) for CHART.js. |
org.pepstock.charba.client.datalabels.callbacks |
Contains the
DataLabelsPlugin.ID plugin callback interfaces to configure the
plugin itself. |
org.pepstock.charba.client.datalabels.events |
Contains the
DataLabelsPlugin.ID plugin event handlers interfaces to catch
event of plugin. |
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.
|
org.pepstock.charba.client.impl.charts |
Contains METER and GAUGE charts implementations (based on controllers), available out-of-the box.
|
org.pepstock.charba.client.impl.plugins |
Contains some plugins implementations, available out-of-the box.
|
org.pepstock.charba.client.items |
Contains all elements generated by CHART.JS, which are mapping java script objects, to use at runtime in plugins, events or
controllers.
|
org.pepstock.charba.client.labels |
Contains all classes to use
LabelsPlugin.ID plugin (AKA
chartjs-plugin-labels.js ) available for CHART.JS |
org.pepstock.charba.client.labels.callbacks |
Contains the
LabelsPlugin.ID plugin callback interfaces to configure the plugin
itself. |
org.pepstock.charba.client.options |
Contains all elements to configure charts at global level (know as chart global options).
|
org.pepstock.charba.client.plugins |
Contains all classes to manage the plugin implementations.
|
org.pepstock.charba.client.positioner |
Contains all classes to implement a custom tooltip positioner for CHART.JS.
|
org.pepstock.charba.client.utils |
Contains some utilities to use in Charba, like HTML annotation builder, and other java script utilities useful for debugging.
|
org.pepstock.charba.client.zoom |
Contains all classes to activate the
ZoomPlugin.ID plugin (AKA
chartjs-plugin-zoom.js ) for CHART.js. |
org.pepstock.charba.client.zoom.callbacks |
Contains the
ZoomPlugin.ID plugin callback interfaces to configure the plugin itself
and to catch events. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractChart<D extends Dataset>
Base class of all charts.
It contains Chart.js initialization. |
class |
BarChart
BAR chart implementation.
A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side. |
class |
BubbleChart
BUBBLE chart implementation.
A bubble chart is used to display three dimensions of data at the same time. The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles. |
class |
DoughnutChart
DOUGHNUT chart implementation.
A doughnut charts are divided into segments, the arc of each segment shows the proportional value of each piece of data. |
class |
HorizontalBarChart
HORIZONTAL BAR chart implementation.
A horizontal bar chart is a variation on a bar chart. It is sometimes used to show trend data, and the comparison of multiple data sets side by side. |
class |
LineChart
LINE chart implementation.
A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets. |
class |
PieChart
PIE chart implementation.
A pie charts are divided into segments, the arc of each segment shows the proportional value of each piece of data. They are excellent at showing the relational proportions between data. |
class |
PolarAreaChart
POLAR AREA chart implementation.
Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value. This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context. |
class |
RadarChart
RADAR chart implementation.
A radar chart is a way of showing multiple data points and the variation between them. They are often useful for comparing the points of two or more different data sets. |
class |
ScatterChart
SCATTER chart implementation.
Scatter charts are based on basic line charts with the x axis changed to a linear axis. To use a scatter chart, data must be passed as objects containing X and Y properties. |
class |
StackedAreaChart
STACKED AREA chart implementation.
A stacked area chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets. |
class |
StackedBarChart
STACKED BAR chart implementation.
Stacked bar charts can be configured like bar charts and changes the settings on the X and Y axes to enable stacking. Stacked bar charts can be used to show how one data series is made up of a number of smaller pieces. |
class |
TimeSeriesBarChart
BAR chart implementation for time series.
A bar chart provides a way of showing data values represented as vertical bars. |
class |
TimeSeriesLineChart
LINE chart implementation for time series.
A line chart is a way of plotting data points on a line. |
Modifier and Type | Method and Description |
---|---|
static IsChart |
Charts.get(String chartId)
Returns the chart instance by its id.
|
IsChart |
Chart.getChart()
Returns the CHARBA chart or
null if CHARBA id is not present into CAHRT.JS chart options. |
Modifier and Type | Method and Description |
---|---|
void |
Controller.addElementAndReset(ControllerContext context,
IsChart chart,
int index)
Create a single element for the data at the given index and reset its state.
|
void |
Controller.addElements(ControllerContext context,
IsChart chart)
Create elements for each piece of data in the dataset.
|
static void |
IsChart.checkIfConsistent(IsChart chart)
Check if chart passed as argument is not
null and its id is not null as well, and if mandatory
methods of interface will return consistent instances.If not, throw a IllegalArgumentException . |
static void |
IsChart.checkIfValid(IsChart chart)
Checks if chart passed as argument is not
null and its id is not null as well.If not, throw a IllegalArgumentException . |
void |
Controller.draw(ControllerContext context,
IsChart chart,
double ease)
Draw the representation of the dataset.
|
List<LegendLabelItem> |
Defaults.generateLabels(IsChart chart)
Returns an unmodifiable list of legend labels for that chart with the callback provided by CHART.JS out of the box.
|
String |
Defaults.generateLegend(IsChart chart)
Returns an HTML string of a legend for that chart with the callback provided by CHART.JS out of the box.
|
static Chart |
Charts.getNative(IsChart chart)
Returns the CHART.JS chart instance by chart instance.
|
static boolean |
Charts.hasNative(IsChart chart)
Returns
true if there is a CHART.JS chart instance by chart instance. |
void |
Controller.initialize(ControllerContext context,
IsChart chart,
int datasetIndex)
Initializes the controller.
|
static boolean |
IsChart.isAbstractChart(IsChart chart)
Returns
true if chart passed as argument is an abstract chart instance. |
static boolean |
Controller.isConsistent(Controller controller,
ControllerContext context,
IsChart chart)
Returns
true if all arguments are consistent. |
static boolean |
IsChart.isConsistent(IsChart chart)
Returns
true if chart passed as argument is not null and its id is not null as
well, and if mandatory methods of interface will return consistent instances. |
static boolean |
IsChart.isValid(IsChart chart)
Returns
true if chart passed as argument is not null and its id is not null as
well. |
void |
ConfigurationElement.load(IsChart chart,
Configuration configuration)
Called to enable to load into a configuration object the specific configuration item (by native object).
|
void |
ChartsLifecycleListener.onAfterConfigure(IsChart chart)
Called after 'chart' has been configured.
|
void |
AbstractChartsLifecycleListener.onAfterConfigure(IsChart chart) |
void |
Plugin.onAfterDatasetDraw(IsChart chart,
DatasetPluginItem item)
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
|
void |
Plugin.onAfterDatasetsDraw(IsChart chart,
double easing)
Called after the 'chart' datasets have been drawn.
|
void |
Plugin.onAfterDatasetsUpdate(IsChart chart)
Called after the 'chart' datasets have been updated.
|
void |
Plugin.onAfterDatasetUpdate(IsChart chart,
DatasetPluginItem item)
Called after the 'chart' datasets at the given 'args.index' has been updated.
|
void |
ChartsLifecycleListener.onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.
|
void |
AbstractChartsLifecycleListener.onAfterDestroy(IsChart chart) |
void |
Plugin.onAfterDraw(IsChart chart,
double easing)
Called after the 'chart' has been drawn for the specific easing value.
|
void |
Plugin.onAfterEvent(IsChart chart,
ChartNativeEvent event)
Called after the 'event' has been consumed.
|
void |
ChartsLifecycleListener.onAfterInit(IsChart chart)
Called after 'chart' has been initialized.
|
void |
AbstractChartsLifecycleListener.onAfterInit(IsChart chart) |
void |
Plugin.onAfterInit(IsChart chart,
Chart nativeChart)
Called after 'chart' has been initialized and before the first update.
|
void |
Plugin.onAfterLayout(IsChart chart)
Called after the 'chart' has been layed out.
|
void |
Plugin.onAfterRender(IsChart chart)
Called after the 'chart' has been fully rendered (and animation completed).
|
void |
Plugin.onAfterTooltipDraw(IsChart chart,
TooltipPluginItem item)
Called after drawing the 'tooltip'.
|
void |
Plugin.onAfterUpdate(IsChart chart)
Called after 'chart' has been updated and before rendering.
|
void |
ChartsLifecycleListener.onBeforeConfigure(IsChart chart)
Called before configuring 'chart'.
|
void |
AbstractChartsLifecycleListener.onBeforeConfigure(IsChart chart) |
boolean |
Plugin.onBeforeDatasetDraw(IsChart chart,
DatasetPluginItem item)
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
|
boolean |
Plugin.onBeforeDatasetsDraw(IsChart chart,
double easing)
Called before drawing the 'chart' datasets.
|
boolean |
Plugin.onBeforeDatasetsUpdate(IsChart chart)
Called before updating the 'chart' datasets.
|
boolean |
Plugin.onBeforeDatasetUpdate(IsChart chart,
DatasetPluginItem item)
Called before updating the 'chart' dataset at the given 'args.index'.
|
void |
ChartsLifecycleListener.onBeforeDestroy(IsChart chart)
Called before the chart has been destroyed.
|
void |
AbstractChartsLifecycleListener.onBeforeDestroy(IsChart chart) |
boolean |
Plugin.onBeforeDraw(IsChart chart,
double easing)
Called before drawing 'chart' at every animation frame specified by the given easing value.
|
boolean |
Plugin.onBeforeEvent(IsChart chart,
ChartNativeEvent event)
Called before processing the specified 'event'.
|
void |
Plugin.onBeforeInit(IsChart chart)
Called before initializing 'chart'.
|
void |
ChartsLifecycleListener.onBeforeInit(IsChart chart)
Called before initializing 'chart'.
|
void |
AbstractChartsLifecycleListener.onBeforeInit(IsChart chart) |
boolean |
Plugin.onBeforeLayout(IsChart chart)
Called before laying out 'chart'.
|
boolean |
Plugin.onBeforeRender(IsChart chart)
Called before rendering 'chart'.
|
boolean |
Plugin.onBeforeTooltipDraw(IsChart chart,
TooltipPluginItem item)
Called before drawing the 'tooltip'.
|
boolean |
Plugin.onBeforeUpdate(IsChart chart)
Called before updating 'chart'.
|
void |
Plugin.onConfigure(IsChart chart)
Called before initializing configuration of 'chart'.
|
void |
Plugin.onDestroy(IsChart chart)
Called after the chart as been destroyed.
|
void |
Plugin.onResize(IsChart chart,
SizeItem size)
Called after the chart as been resized.
|
void |
Controller.removeHoverStyle(ControllerContext context,
IsChart chart,
StyleElement element)
Remove hover styling from the given element.
|
void |
Controller.setHoverStyle(ControllerContext context,
IsChart chart,
StyleElement element)
Add hover styling to the given element.
|
void |
Controller.update(ControllerContext context,
IsChart chart,
boolean reset)
Update the elements in response to new data.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationOptionsFactory.onBeforeConfigure(IsChart chart) |
Constructor and Description |
---|
AnnotationOptions(IsChart chart)
Creates new
AnnotationPlugin.ID plugin options, relating to chart instance for default. |
BoxAnnotation(IsChart chart)
Creates a box annotation to be added to an
AnnotationOptions instance, relating to chart instance for default. |
LineAnnotation(IsChart chart)
Creates a line annotation to be added to an
AnnotationOptions instance, relating to chart instance for default. |
Modifier and Type | Method and Description |
---|---|
void |
ClickCallback.onClick(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once click is fired.
|
void |
ContextMenuCallback.onContextMenu(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once contextmenu is fired.
|
void |
DoubleClickCallback.onDoubleClick(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once dblclick is fired.
|
void |
MouseDownCallback.onMouseDown(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mousedown is fired.
|
void |
MouseEnterCallback.onMouseEnter(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseenter is fired.
|
void |
MouseLeaveCallback.onMouseLeave(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseleave is fired.
|
void |
MouseMoveCallback.onMouseMove(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mousemove is fired.
|
void |
MouseOutCallback.onMouseOut(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseout is fired.
|
void |
MouseOverCallback.onMouseOver(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseover is fired.
|
void |
MouseUpCallback.onMouseUp(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once mouseup is fired.
|
void |
WheelCallback.onWheel(IsChart chart,
NativeEvent event,
AbstractAnnotation annotation)
Method called once wheel is fired.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
ScriptableContext.getChart()
Returns the CHARBA chart instance.
|
static IsChart |
ScriptableUtils.retrieveChart(ScriptableContext context,
Object callback)
Returns the chart instance if callback and chart itself are consistent.
|
Modifier and Type | Method and Description |
---|---|
SafeHtml |
LegendCallback.generateLegend(IsChart chart)
Creates HTML representation of legend.
|
List<LegendLabelItem> |
LegendLabelsCallback.generateLegendLabels(IsChart chart,
List<LegendLabelItem> defaultLabels)
Generates legend items for each thing in the legend.
|
SafeHtml |
HtmlLegendTextCallback.generateLegendText(IsChart chart,
LegendItem item,
String currentText)
Returns a text of legend for a specific item, as HTML
|
T |
Scriptable.invoke(IsChart chart,
ScriptableContext context)
Returns the value of property at runtime, using the chart instance and the context.
|
List<String> |
TooltipBodyCallback.onAfterBody(IsChart chart,
List<TooltipItem> items)
Returns text to render after the body section.
|
List<String> |
AbstractTooltipBodyCallback.onAfterBody(IsChart chart,
List<TooltipItem> items) |
List<String> |
TooltipFooterCallback.onAfterFooter(IsChart chart,
List<TooltipItem> items)
Text to render after the footer section.
|
List<String> |
AbstractTooltipFooterCallback.onAfterFooter(IsChart chart,
List<TooltipItem> items) |
String |
TooltipLabelCallback.onAfterLabel(IsChart chart,
TooltipItem item)
Returns text to render after an individual label.
|
String |
AbstractTooltipLabelCallback.onAfterLabel(IsChart chart,
TooltipItem item) |
List<String> |
TooltipTitleCallback.onAfterTitle(IsChart chart,
List<TooltipItem> items)
Returns text to render after the title.
|
List<String> |
AbstractTooltipTitleCallback.onAfterTitle(IsChart chart,
List<TooltipItem> items) |
List<String> |
TooltipBodyCallback.onBeforeBody(IsChart chart,
List<TooltipItem> items)
Returns text to render before the body section.
|
List<String> |
AbstractTooltipBodyCallback.onBeforeBody(IsChart chart,
List<TooltipItem> items) |
List<String> |
TooltipFooterCallback.onBeforeFooter(IsChart chart,
List<TooltipItem> items)
Returns text to render before the footer section.
|
List<String> |
AbstractTooltipFooterCallback.onBeforeFooter(IsChart chart,
List<TooltipItem> items) |
String |
TooltipLabelCallback.onBeforeLabel(IsChart chart,
TooltipItem item)
Returns text to render before an individual label.
|
String |
AbstractTooltipLabelCallback.onBeforeLabel(IsChart chart,
TooltipItem item) |
List<String> |
TooltipTitleCallback.onBeforeTitle(IsChart chart,
List<TooltipItem> items)
Returns the text to render before the title.
|
List<String> |
AbstractTooltipTitleCallback.onBeforeTitle(IsChart chart,
List<TooltipItem> items) |
void |
TooltipCustomCallback.onCustom(IsChart chart,
TooltipModel model)
Custom tooltips allow you to hook into the tooltip rendering process so that you can render the tooltip in your own
custom way.
|
List<String> |
TooltipFooterCallback.onFooter(IsChart chart,
List<TooltipItem> items)
Returns text to render as the footer of the tooltip.
|
List<String> |
AbstractTooltipFooterCallback.onFooter(IsChart chart,
List<TooltipItem> items) |
int |
TooltipItemSortCallback.onItemSort(IsChart chart,
TooltipItem item1,
TooltipItem item2)
Allows sorting of tooltip items.
|
String |
TooltipLabelCallback.onLabel(IsChart chart,
TooltipItem item)
Returns text to render for an individual item in the tooltip.
|
String |
AbstractTooltipLabelCallback.onLabel(IsChart chart,
TooltipItem item) |
TooltipLabelColor |
TooltipLabelCallback.onLabelColor(IsChart chart,
TooltipItem item)
Returns the colors to render for the tooltip item.
|
TooltipLabelColor |
AbstractTooltipLabelCallback.onLabelColor(IsChart chart,
TooltipItem item) |
IsColor |
TooltipLabelCallback.onLabelTextColor(IsChart chart,
TooltipItem item)
Returns the colors for the text of the label for the tooltip item.
|
IsColor |
AbstractTooltipLabelCallback.onLabelTextColor(IsChart chart,
TooltipItem item) |
List<String> |
TooltipTitleCallback.onTitle(IsChart chart,
List<TooltipItem> items)
Returns text to render as the title of the tooltip.
|
List<String> |
AbstractTooltipTitleCallback.onTitle(IsChart chart,
List<TooltipItem> items) |
Modifier and Type | Method and Description |
---|---|
void |
CanvasObjectFactory.clear(IsChart chart)
Clears the cache of loaded patterns and gradients, needed when a chart is destroy.
|
CanvasGradient |
CanvasObjectFactory.createGradient(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Creates a GWT canvas gradient java script object using a Charba gradient and a chart instance which must provide a canvas
instance and its context.
|
CanvasPattern |
CanvasObjectFactory.createPattern(IsChart chart,
Pattern pattern)
Creates a GWT canvas pattern java script object using a Charba pattern and a chart instance which must provide a canvas
instance and its context.
|
protected abstract Area |
CanvasObjectFactory.getArea(IsChart chart,
Gradient gradient)
Returns an area object used to define the area of LINEAR gradient.
|
protected abstract Center |
CanvasObjectFactory.getCenter(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Returns the coordinates of a center of arc for RADIAL gradient.
|
protected abstract Radius |
CanvasObjectFactory.getRadius(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Returns the inner and outer radius of arc for RADIAL gradient.
|
void |
CanvasObjectFactory.resetGradients(IsChart chart)
Removes from cache all loaded gradients, needed during the resize of chart.
|
Modifier and Type | Method and Description |
---|---|
void |
Merger.load(IsChart chart,
NativeObjectContainer options,
OptionsEnvelop envelop)
Merges chart default options (by chart.defaults[type]), default scale options (by chart.defaults.scale) and global
options (by chart.defaults.global) and chart options.
The chain of priority is: chart options chart default options (by chart.defaults[type]) default scale options (by chart.defaults.scale) global options (by chart.defaults.global) |
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationOptions.load(IsChart chart,
Configuration configuration) |
Constructor and Description |
---|
AbstractPieOptions(IsChart chart,
IsDefaultScaledOptions defaultvalues)
Builds the object storing the chart instance and defaults.
|
BarOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
BubbleOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance.
|
CartesianCategoryAxis(IsChart chart)
Builds the object storing the chart instance.
|
CartesianCategoryAxis(IsChart chart,
CartesianAxisType cartesianType)
Builds the object storing the chart instance and axis type.
|
CartesianLinearAxis(IsChart chart)
Builds the object storing the chart instance.
|
CartesianLinearAxis(IsChart chart,
CartesianAxisType cartesianType)
Builds the object storing the chart instance and axis type.
|
CartesianLogarithmicAxis(IsChart chart)
Builds the object storing the chart instance.
|
CartesianLogarithmicAxis(IsChart chart,
CartesianAxisType cartesianType)
Builds the object storing the chart instance and axis type.
|
CartesianTimeAxis(IsChart chart)
Builds the object storing the chart instance.
|
CartesianTimeAxis(IsChart chart,
CartesianAxisType cartesianType)
Builds the object storing the chart instance and axis type.
|
DoughnutOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default options.
|
LineOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
PieOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
PolarAreaOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
RadarOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
RadialAxis(IsChart chart)
Builds the object storing the chart instance.
|
ScatterOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
SingleScaleOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
StackedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
StackedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues,
boolean onlyYScaled)
Builds the object storing the chart instance, default values and if only Y axis is scaled.
|
TimeSeriesBarOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
TimeSeriesLineOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
ControllerContext.getChart()
Returns the CHARBA chart instance.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractController.addElementAndReset(ControllerContext context,
IsChart chart,
int index) |
void |
AbstractController.addElements(ControllerContext context,
IsChart chart) |
void |
AbstractController.draw(ControllerContext context,
IsChart chart,
double ease) |
void |
AbstractController.initialize(ControllerContext context,
IsChart chart,
int datasetIndex) |
void |
AbstractController.removeHoverStyle(ControllerContext context,
IsChart chart,
StyleElement element) |
void |
AbstractController.setHoverStyle(ControllerContext context,
IsChart chart,
StyleElement element) |
void |
AbstractController.update(ControllerContext context,
IsChart chart,
boolean reset) |
Modifier and Type | Method and Description |
---|---|
protected Area |
DatasetCanvasObjectFactory.getArea(IsChart chart,
Gradient gradient) |
protected Center |
DatasetCanvasObjectFactory.getCenter(IsChart chart,
Gradient gradient,
int datasetIndex,
int index) |
protected Radius |
DatasetCanvasObjectFactory.getRadius(IsChart chart,
Gradient gradient,
int datasetIndex,
int index) |
void |
Data.load(IsChart chart,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
static DataLabelsOptionsBuilder |
DataLabelsOptionsBuilder.create(IsChart chart)
Returns new builder instance using the chart global options.
|
Constructor and Description |
---|
DataLabelsOptions(IsChart chart)
Creates new
DataLabelsPlugin.ID plugin options, relating to chart instance for default. |
Modifier and Type | Method and Description |
---|---|
String |
FormatterCallback.invoke(IsChart chart,
double value,
ScriptableContext context)
Returns the
formatter property at runtime, using the chart instance and the plugin context. |
Modifier and Type | Method and Description |
---|---|
boolean |
ClickEventHandler.onClick(IsChart chart,
ScriptableContext context)
Invoked to manage CLICK events on labels.
|
boolean |
AbstractEventHandler.onClick(IsChart chart,
ScriptableContext context) |
boolean |
EnterEventHandler.onEnter(IsChart chart,
ScriptableContext context)
Invoked to manage ENTER events on labels.
|
boolean |
AbstractEventHandler.onEnter(IsChart chart,
ScriptableContext context) |
boolean |
LeaveEventHandler.onLeave(IsChart chart,
ScriptableContext context)
Invoked to manage LEAVE events on labels.
|
boolean |
AbstractEventHandler.onLeave(IsChart chart,
ScriptableContext context) |
Modifier and Type | Method and Description |
---|---|
IsChart |
IsCommonChartEvent.getChart()
Returns the chart instance, stored in the event as source.
|
IsChart |
DatasetSelectionEvent.getChart() |
IsChart |
AbstractEvent.getChart()
Returns the chart instance, stored in the event as source.
|
Constructor and Description |
---|
DatasetSelectionEvent(NativeEvent nativeEvent,
IsChart chart,
DatasetItem item)
Creates the event with dataset metadata item related to the click and the chart instance
|
Modifier and Type | Method and Description |
---|---|
static double |
Percentage.compute(IsChart chart,
double value,
ScriptableContext context)
Computes the percentage of the value based on the data of datasets.
|
static double |
Percentage.compute(IsChart chart,
double value,
ScriptableContext context,
boolean stacked)
Computes the percentage of the value based on the data of datasets.
|
String |
PercentageCallback.invoke(IsChart chart,
double value,
ScriptableContext context) |
boolean |
DataLabelsSelectionHandler.onClick(IsChart chart,
ScriptableContext context) |
boolean |
DataLabelsPointerHandler.onEnter(IsChart chart,
ScriptableContext context) |
boolean |
DataLabelsPointerHandler.onLeave(IsChart chart,
ScriptableContext context) |
Modifier and Type | Class and Description |
---|---|
class |
GaugeChart
GAUGE chart implementation.
|
class |
MeterChart
METER chart implementation.
|
Constructor and Description |
---|
GaugeOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and defaults.
|
MeterOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and defaults.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
HtmlLegendItem.getChart()
Returns the chart instance
|
Modifier and Type | Method and Description |
---|---|
void |
DatasetsItemsSelector.clearSelection(IsChart chart)
Clears the selection on the chart.
|
void |
DatasetsItemsSelector.clearSelection(IsChart chart,
boolean fireEvent)
Clears the selection on the chart and set if an event should fire on clear action.
|
static DatasetsItemsSelectorOptionsBuilder |
DatasetsItemsSelectorOptionsBuilder.create(IsChart chart)
Returns new builder instance using the chart global options.
|
static ColorSchemesOptionsBuilder |
ColorSchemesOptionsBuilder.create(IsChart chart)
Returns new builder instance using chart global options as default.
|
double |
DatasetsItemsSelector.getPadding(IsChart chart)
Returns the padding height used by clear selection element if enabled.
This is very helpful when you have added padding for your purposes and you need to know the amount of space that the element allocated. |
void |
HtmlLegend.onAfterDraw(IsChart chart,
double easing) |
void |
DatasetsItemsSelector.onAfterDraw(IsChart chart,
double easing) |
void |
ChartBackgroundColor.onAfterDraw(IsChart chart,
double easing) |
void |
ChartPointer.onAfterEvent(IsChart chart,
ChartNativeEvent event) |
boolean |
HtmlLegend.onBeforeDraw(IsChart chart,
double easing) |
boolean |
ChartBackgroundColor.onBeforeDraw(IsChart chart,
double easing) |
boolean |
DatasetsItemsSelector.onBeforeEvent(IsChart chart,
ChartNativeEvent event) |
boolean |
HtmlLegend.onBeforeUpdate(IsChart chart) |
boolean |
DatasetsItemsSelector.onBeforeUpdate(IsChart chart) |
boolean |
ColorSchemes.onBeforeUpdate(IsChart chart) |
boolean |
ChartPointer.onBeforeUpdate(IsChart chart) |
void |
HtmlLegend.onConfigure(IsChart chart) |
void |
DatasetsItemsSelector.onConfigure(IsChart chart) |
void |
ColorSchemes.onConfigure(IsChart chart) |
void |
HtmlLegend.onDestroy(IsChart chart) |
void |
DatasetsItemsSelector.onDestroy(IsChart chart) |
void |
ColorSchemes.onDestroy(IsChart chart) |
void |
ChartPointer.onDestroy(IsChart chart) |
void |
ChartBackgroundColor.onDestroy(IsChart chart) |
void |
ChartBackgroundColor.onResize(IsChart chart,
SizeItem size) |
void |
DatasetsItemsSelector.skipNextRefreshFireEvent(IsChart chart)
Sets a flag to skip to send event after refresh.
|
Constructor and Description |
---|
ChartBackgroundColorOptions(IsChart chart)
Builds the object with a chart instance in order to get the right defaults.
If the plugin options have not been set by chart type, it will use the global. |
ChartPointerOptions(IsChart chart)
Builds the object with a chart instance in order to get the right defaults.
If the plugin options have not been set by chart type, it will use the global. |
ColorSchemesOptions(IsChart chart)
Builds the object with a chart instance in order to get the right defaults.
If the plugin options have not been set by chart type, it will use the global. |
DatasetsItemsSelectorOptions(IsChart chart)
Builds the object with a chart instance in order to get the right defaults.
If the plugin options have not been set by chart type, it will use the global. |
HtmlLegendOptions(IsChart chart)
Builds the object with a chart instance in order to get the right defaults.
If the plugin options have not been set by chart type, it will use the global. |
Modifier and Type | Method and Description |
---|---|
void |
LegendLabelItem.setFillStyle(IsChart chart,
Gradient gradient)
Sets the fill style of the legend box as gradient.
|
void |
LegendLabelItem.setFillStyle(IsChart chart,
Pattern pattern)
Sets the fill style of the legend box as pattern.
|
void |
LegendLabelItem.setStrokeStyle(IsChart chart,
Gradient gradient)
Sets the stroke style of the legend box as gradient.
|
void |
LegendLabelItem.setStrokeStyle(IsChart chart,
Pattern pattern)
Sets the stroke style of the legend box as pattern.
|
Modifier and Type | Method and Description |
---|---|
static LabelsOptionsBuilder |
LabelsOptionsBuilder.create(IsChart chart)
Returns new builder instance using the chart global options.
|
Constructor and Description |
---|
LabelsOptions(IsChart chart)
Creates new
LabelsPlugin.ID plugin options, relating to chart instance for default. |
Modifier and Type | Method and Description |
---|---|
Object |
FontColorCallback.invoke(IsChart chart,
FontColorItem item)
Called to change font color at runtime, using the arguments.
|
Object |
RenderCallback.invoke(IsChart chart,
RenderItem item)
Called to provide the item to be rendered as string or as image at runtime, using the arguments.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
ExtendedOptions.getChart()
Returns the chart instance which is using the options.
|
Constructor and Description |
---|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Creates an options with default provider.
|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues,
OptionsEnvelop envelop)
Creates an options with default provider.
|
Modifier and Type | Method and Description |
---|---|
void |
Plugins.load(IsChart chart,
Configuration configuration) |
void |
AbstractPluginCachedOptionsFactory.onAfterConfigure(IsChart chart) |
void |
AbstractPlugin.onAfterDatasetDraw(IsChart chart,
DatasetPluginItem item) |
void |
AbstractPlugin.onAfterDatasetsDraw(IsChart chart,
double easing) |
void |
AbstractPlugin.onAfterDatasetsUpdate(IsChart chart) |
void |
AbstractPlugin.onAfterDatasetUpdate(IsChart chart,
DatasetPluginItem item) |
void |
AbstractPluginCachedOptionsFactory.onAfterDestroy(IsChart chart) |
void |
AbstractPlugin.onAfterDraw(IsChart chart,
double easing) |
void |
AbstractPlugin.onAfterEvent(IsChart chart,
ChartNativeEvent event) |
void |
AbstractPluginCachedOptionsFactory.onAfterInit(IsChart chart) |
void |
AbstractPlugin.onAfterInit(IsChart chart,
Chart nativeChart) |
void |
AbstractPlugin.onAfterLayout(IsChart chart) |
void |
AbstractPlugin.onAfterRender(IsChart chart) |
void |
AbstractPlugin.onAfterTooltipDraw(IsChart chart,
TooltipPluginItem item) |
void |
AbstractPlugin.onAfterUpdate(IsChart chart) |
void |
AbstractPluginCachedOptionsFactory.onBeforeConfigure(IsChart chart) |
boolean |
AbstractPlugin.onBeforeDatasetDraw(IsChart chart,
DatasetPluginItem item) |
boolean |
AbstractPlugin.onBeforeDatasetsDraw(IsChart chart,
double easing) |
boolean |
AbstractPlugin.onBeforeDatasetsUpdate(IsChart chart) |
boolean |
AbstractPlugin.onBeforeDatasetUpdate(IsChart chart,
DatasetPluginItem item) |
void |
AbstractPluginCachedOptionsFactory.onBeforeDestroy(IsChart chart) |
boolean |
AbstractPlugin.onBeforeDraw(IsChart chart,
double easing) |
boolean |
AbstractPlugin.onBeforeEvent(IsChart chart,
ChartNativeEvent event) |
void |
AbstractPluginCachedOptionsFactory.onBeforeInit(IsChart chart) |
void |
AbstractPlugin.onBeforeInit(IsChart chart) |
boolean |
AbstractPlugin.onBeforeLayout(IsChart chart) |
boolean |
AbstractPlugin.onBeforeRender(IsChart chart) |
boolean |
AbstractPlugin.onBeforeTooltipDraw(IsChart chart,
TooltipPluginItem item) |
boolean |
AbstractPlugin.onBeforeUpdate(IsChart chart) |
void |
Plugins.onChartConfigure(Configuration config,
IsChart chart)
Invokes the on configuration method to inform the plugins that the chart is going to be initialized.
|
void |
GlobalPlugins.onChartConfigure(Configuration config,
IsChart chart)
Invokes the on configuration method to inform the plugins that the chart is going to be initialized.
|
void |
AbstractPlugin.onConfigure(IsChart chart) |
void |
AbstractPlugin.onDestroy(IsChart chart) |
void |
AbstractPlugin.onResize(IsChart chart,
SizeItem size) |
void |
AbstractPluginOptions.store(IsChart chart)
Stores this options into chart plugins options.
|
Modifier and Type | Method and Description |
---|---|
Point |
TooltipPositioner.computePosition(IsChart chart,
List<DatasetItem> items,
Point eventPoint)
Applies own logic to returns the point where the tooltip must be showed.
|
Modifier and Type | Method and Description |
---|---|
static Style.Cursor |
Utilities.getCursorOfChart(IsChart chart)
Returns the cursor currently set into chart.
|
Modifier and Type | Method and Description |
---|---|
static Drag |
ZoomPlugin.createDrag(IsChart chart)
Creates new customized drag-to-zoom effect.
|
static void |
ZoomPlugin.resetZoom(IsChart chart)
Reset the zoom of chart when
ZoomPlugin is activated. |
Constructor and Description |
---|
ZoomOptions(IsChart chart)
Creates new
ZoomPlugin.ID plugin options, relating to chart instance for default. |
Modifier and Type | Method and Description |
---|---|
InteractionAxis |
ModeCallback.mode(IsChart chart)
Called to set the mode (pan and zoom) directions at runtime.
|
void |
CompleteCallback.onComplete(IsChart chart,
AbstractConfigurationItem configurationItem)
Method called once zooming or panning is completed.
|
void |
ProgressCallback.onProgress(IsChart chart,
AbstractConfigurationItem configurationItem)
Method called while the user is zooming or panning.
|