Uses of Interface
org.pepstock.charba.client.IsChart
-
Packages that use IsChart 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 theAnnotationPlugin.ID
plugin (AKAchartjs-plugin-annotation.js
) for CHART.js.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 theDataLabelsPlugin.ID
plugin (AKAchartjs-plugin-datalabels.js
) for CHART.js.org.pepstock.charba.client.events Contains all events to interact with chart instance.org.pepstock.charba.client.geo Contains all classes to activate the GEO controllers (AKAchartjs-chart-geo.js
) for CHART.js.org.pepstock.charba.client.gwt.widgets Contains all charts classes wrapped as GWT widget in order to enable to use inside to GWT UIBinder.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 useLabelsPlugin.ID
plugin (AKAchartjs-plugin-labels.js
) available for CHART.JS.org.pepstock.charba.client.matrix Contains all classes to activate the Matrix controller (AKAchartjs-chart-matrix.js
) for CHART.js.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.plugins.hooks Contains all hooks interfaces used bySmartPlugin
in order to activate a custom plugin.org.pepstock.charba.client.positioner Contains all classes to implement a custom tooltip positioner for CHART.JS.org.pepstock.charba.client.sankey Contains all classes to activate the Sankey controller (AKAchartjs-chart-sankey.js
) for CHART.js.org.pepstock.charba.client.treemap Contains all classes to activate the TreeMap controller (AKAchartjs-chart-treemap.js
) 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 theZoomPlugin.ID
plugin (AKAchartjs-plugin-zoom.js
) for CHART.js. -
-
Uses of IsChart in org.pepstock.charba.client
Classes in org.pepstock.charba.client that implement IsChart Modifier and Type Class Description class
AbstractChart
Base class of all charts.
It contains Chart.js initialization.class
AreaChart
AREA chart implementation.
A 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
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 in the 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 in the 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
StackedLineChart
STACKED LINE 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
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.class
VerticalLineChart
Vertical 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.Methods in org.pepstock.charba.client with type parameters of type IsChart Modifier and Type Method Description static <T extends IsChart>
TIsChart. checkAndGetIfConsistent(T chart)
Check if chart passed as argument is notnull
and its id is notnull
as well, and if mandatory methods of interface will return consistent instances.
If not, throw aIllegalArgumentException
or returns the chart instance.Methods in org.pepstock.charba.client that return IsChart Modifier and Type Method Description static IsChart
IsChart. checkAndGetIfValid(IsChart chart)
Check if chart passed as argument is notnull
and its id is notnull
as well.
If not, throw aIllegalArgumentException
or returns the chart instance.static IsChart
Charts. get(String chartId)
Returns the chart instance by its id.IsChart
Chart. getChart()
Returns the CHARBA chart ornull
if CHARBA id is not present in the CAHRT.JS chart options.protected IsChart
AbstractChart. getSource()
Methods in org.pepstock.charba.client with parameters of type IsChart Modifier and Type Method Description static IsChart
IsChart. checkAndGetIfValid(IsChart chart)
Check if chart passed as argument is notnull
and its id is notnull
as well.
If not, throw aIllegalArgumentException
or returns the chart instance.static void
IsChart. checkIfConsistent(IsChart chart)
Check if chart passed as argument is notnull
and its id is notnull
as well, and if mandatory methods of interface will return consistent instances.
If not, throw aIllegalArgumentException
.static void
IsChart. checkIfValid(IsChart chart)
Checks if chart passed as argument is notnull
and its id is notnull
as well.
If not, throw aIllegalArgumentException
.void
Helpers. clipArea(IsChart chart)
Clips an area on the canvas context using theChartAreaNode
of the chart.void
Helpers. clipArea(IsChart chart, double width, double height)
Clips an area on the canvas context, using theCanvas
of the chart.
The area is specified by size.
Starting points are 0.void
Helpers. clipArea(IsChart chart, double x, double y, double width, double height)
Clips an area on the canvas context, using theCanvas
of the chart.
The area is specified by coordinates and size.void
Helpers. clipArea(IsChart chart, IsArea area)
Clips an area on the canvas context, using theCanvas
of the chart.void
ChartTimerTask. execute(IsChart chart)
Executes the task repeatedly, internally by the chart instance.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.static Chart
Charts. getNative(IsChart chart)
Returns the CHART.JS chart instance by chart instance.EventPoint
Helpers. getRelativePosition(IsChart chart, NativeBaseEvent event)
A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred.EventPoint
Helpers. getRelativePosition(IsChart chart, AbstractEvent event)
A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred.static boolean
Charts. hasNative(IsChart chart)
Returnstrue
if there is a CHART.JS chart instance by chart instance.List<String>
Defaults. invokeTooltipsCallbackOnLabel(IsChart chart, TooltipItem item)
Returns the default text to render for an individual item in the tooltip.TooltipLabelColor
Defaults. invokeTooltipsCallbackOnLabelColor(IsChart chart, TooltipItem item)
Returns the default colors to render for the tooltip item.TooltipLabelPointStyle
Defaults. invokeTooltipsCallbackOnLabelPointStyle(IsChart chart, TooltipItem item)
Returns the default point style to render for the tooltip item.List<String>
Defaults. invokeTooltipsCallbackOnTitle(IsChart chart, List<TooltipItem> items)
Returns the default text to render as the title of the tooltip.static boolean
IsChart. isAbstractChart(IsChart chart)
Returnstrue
if chart passed as argument is an abstract chart instance.static boolean
Controller. isConsistent(Controller controller, ControllerContext context, IsChart chart)
Returnstrue
if all arguments are consistent.static boolean
IsChart. isConsistent(IsChart chart)
Returnstrue
if chart passed as argument is notnull
and its id is notnull
as well, and if mandatory methods of interface will return consistent instances.static boolean
IsChart. isValid(IsChart chart)
Returnstrue
if chart passed as argument is notnull
and its id is notnull
as well.void
ConfigurationElement. load(IsChart chart, Configuration configuration)
Called to enable to load in the a configuration object the specific configuration item (by native object).default void
Plugin. onAfterBuildTicks(IsChart chart, PluginScaleArgument argument)
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.default void
ChartsLifecycleListener. onAfterConfigure(IsChart chart)
Called after 'chart' has been configured.default void
Plugin. onAfterDataLimits(IsChart chart, PluginScaleArgument argument)
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.default void
Plugin. onAfterDatasetDraw(IsChart chart, PluginDatasetArgument item)
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.default void
Plugin. onAfterDatasetsDraw(IsChart chart)
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.default void
Plugin. onAfterDatasetsUpdate(IsChart chart, PluginUpdateArgument argument)
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.default void
Plugin. onAfterDatasetUpdate(IsChart chart, PluginDatasetArgument item)
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.default void
ChartsLifecycleListener. onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.default void
Plugin. onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.default void
Controller. onAfterDraw(ControllerContext context, IsChart chart)
Called after it draws the representation of the data set.default void
Plugin. onAfterDraw(IsChart chart)
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.default void
Plugin. onAfterEvent(IsChart chart, PluginEventArgument argument)
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.default void
ChartsLifecycleListener. onAfterInit(IsChart chart)
Called after 'chart' has been initialized.default void
Plugin. onAfterInit(IsChart chart, Chart nativeChart)
Called after 'chart' has been initialized and before the first update.default void
Controller. onAfterInitialize(ControllerContext context, IsChart chart)
Called after it initializes the controller.default void
Plugin. onAfterLayout(IsChart chart)
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.default void
Controller. onAfterLinkScales(ControllerContext context, IsChart chart)
Called after it ensures that the data set represented by this controller is linked to a scale.default void
Controller. onAfterParse(ControllerContext context, IsChart chart, int start, int count)
Called after it invokes to parse the data into the controller meta data.default void
Plugin. onAfterRender(IsChart chart)
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.default void
Plugin. onAfterTooltipDraw(IsChart chart, PluginTooltipArgument item)
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.default void
Controller. onAfterUpdate(ControllerContext context, IsChart chart, TransitionKey mode)
Called after it updates the elements in response to new data.default void
Plugin. onAfterUpdate(IsChart chart, PluginUpdateArgument argument)
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.default void
Plugin. onBeforeBuildTicks(IsChart chart, PluginScaleArgument argument)
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.default void
ChartsLifecycleListener. onBeforeConfigure(IsChart chart)
Called before configuring 'chart'.default void
Plugin. onBeforeDataLimits(IsChart chart, PluginScaleArgument argument)
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.default boolean
Plugin. onBeforeDatasetDraw(IsChart chart, PluginDatasetArgument item)
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse
, the datasets drawing is cancelled until another 'render' is triggered.default boolean
Plugin. onBeforeDatasetsDraw(IsChart chart)
Called before drawing the 'chart' datasets.default boolean
Plugin. onBeforeDatasetsUpdate(IsChart chart, PluginUpdateArgument argument)
Called before updating the 'chart' datasets.
If any plugin returnsfalse
, the datasets update is cancelled until another 'update' is triggered.default boolean
Plugin. onBeforeDatasetUpdate(IsChart chart, PluginDatasetArgument item)
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse
, the datasets update is cancelled until another 'update' is triggered.default void
ChartsLifecycleListener. onBeforeDestroy(IsChart chart)
Called before the chart has been destroyed.default void
Plugin. onBeforeDestroy(IsChart chart)
Called before the chart is being destroyed.default void
Controller. onBeforeDraw(ControllerContext context, IsChart chart)
Called before it draws the representation of the data set.default boolean
Plugin. onBeforeDraw(IsChart chart)
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse
, the frame drawing is cancelled until another 'render' is triggered.default void
Plugin. onBeforeElementsUpdate(IsChart chart)
Called during the update process, before any chart elements have been created.default boolean
Plugin. onBeforeEvent(IsChart chart, PluginEventArgument argument)
Called before processing the specified 'event'.
If any plugin returnsfalse
, the event will be discarded.default void
ChartsLifecycleListener. onBeforeInit(IsChart chart)
Called before initializing 'chart'.default void
Plugin. onBeforeInit(IsChart chart)
Called before initializing 'chart'.default void
Controller. onBeforeInitialize(ControllerContext context, IsChart chart)
Called before it initializes the controller.default boolean
Plugin. onBeforeLayout(IsChart chart)
Called before laying out 'chart'.
If any plugin returnsfalse
, the layout update is cancelled until another 'update' is triggered.default void
Controller. onBeforeLinkScales(ControllerContext context, IsChart chart)
Called before it ensures that the data set represented by this controller is linked to a scale.default void
Controller. onBeforeParse(ControllerContext context, IsChart chart, int start, int count)
Called before it invokes to parse the data into the controller meta data.default boolean
Plugin. onBeforeRender(IsChart chart)
Called before rendering 'chart'.default boolean
Plugin. onBeforeTooltipDraw(IsChart chart, PluginTooltipArgument item)
Called before drawing the 'tooltip'.
If any plugin returnsfalse
, the tooltip drawing is cancelled until another 'render' is triggered.default void
Controller. onBeforeUpdate(ControllerContext context, IsChart chart, TransitionKey mode)
Called before it updates the elements in response to new data.default boolean
Plugin. onBeforeUpdate(IsChart chart, PluginUpdateArgument argument)
Called before updating 'chart'.
If any plugin returnsfalse
, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.default void
Plugin. onBeginDrawing(IsChart chart, boolean overridePreviousUpdate)
Called before every drawing cycle, coming from initialization, updating or rendering of chart.default void
Plugin. onConfigure(IsChart chart)
Called before initializing configuration of 'chart'.default void
Plugin. onEndDrawing(IsChart chart)
Called after every drawing cycle, coming from initialization, updating or rendering of chart.default void
Plugin. onInstall(IsChart chart)
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).default void
Plugin. onReset(IsChart chart)
Called during chart reset.default void
Plugin. onResize(IsChart chart, PluginResizeArgument argument)
Called after the chart as been resized.default void
Plugin. onStart(IsChart chart)
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.default void
Plugin. onStop(IsChart chart)
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.default void
Plugin. onUninstall(IsChart chart)
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false). -
Uses of IsChart in org.pepstock.charba.client.annotation
Constructors in org.pepstock.charba.client.annotation with parameters of type IsChart Constructor Description AnnotationOptions(IsChart chart)
Creates newAnnotationPlugin.ID
plugin options, relating to chart instance for default.BoxAnnotation(String id, IsChart chart)
Creates a box annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.BoxAnnotation(AnnotationId id, IsChart chart)
Creates a box annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.EllipseAnnotation(String id, IsChart chart)
Creates a ellipse annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.EllipseAnnotation(AnnotationId id, IsChart chart)
Creates a ellipse annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.LabelAnnotation(String id, IsChart chart)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.LabelAnnotation(AnnotationId id, IsChart chart)
Creates a label annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.LineAnnotation(String id, IsChart chart)
Creates a line annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.LineAnnotation(AnnotationId id, IsChart chart)
Creates a line annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.PointAnnotation(String id, IsChart chart)
Creates a point annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.PointAnnotation(AnnotationId id, IsChart chart)
Creates a point annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.PolygonAnnotation(String id, IsChart chart)
Creates a polygon annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object.PolygonAnnotation(AnnotationId id, IsChart chart)
Creates a polygon annotation to be added to anAnnotationOptions
instance, using the ID passed as argument.
The chart instance, passed as argument, must be the chart where the annotations will be applied and is used to get the whole default options in order to get the default for this object. -
Uses of IsChart in org.pepstock.charba.client.callbacks
Methods in org.pepstock.charba.client.callbacks that return IsChart Modifier and Type Method Description IsChart
ChartContext. getChart()
Returns the CHARBA chart instance.static IsChart
ScriptableUtil. retrieveChart(ChartContext context)
Returns the chart instance, contained in the context if context is consistent.Methods in org.pepstock.charba.client.callbacks with parameters of type IsChart Modifier and Type Method Description String
CrosshairFormatterCallback. format(IsChart chart, ScaleItem scale, ScaleValueItem value)
Returns the text to apply to the crosshair label.List<LegendLabelItem>
LegendLabelsCallback. generateLegendLabels(IsChart chart, List<LegendLabelItem> defaultLabels)
Generates legend items for each thing in the legend.SafeHtml
HtmlLegendCallback. generateText(IsChart chart, T item, String currentText)
Returns a text of legend for a specific item or legend's title, as HTMLList<String>
AbstractTooltipBodyCallback. onAfterBody(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipBodyCallback. onAfterBody(IsChart chart, List<TooltipItem> items)
Returns text to render after the body section.
If returnsnull
or empty list, it will be ignored.List<String>
AbstractTooltipFooterCallback. onAfterFooter(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipFooterCallback. onAfterFooter(IsChart chart, List<TooltipItem> items)
Text to render after the footer section.
If returnsnull
or empty list, it will be ignored.default List<String>
TooltipLabelCallback. onAfterLabel(IsChart chart, TooltipItem item)
Returns text to render after an individual label.
If returnsnull
or empty list, it will be ignored.List<String>
AbstractTooltipTitleCallback. onAfterTitle(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipTitleCallback. onAfterTitle(IsChart chart, List<TooltipItem> items)
Returns text to render after the title.
If returnsnull
or empty list, it will be ignored.List<String>
AbstractTooltipBodyCallback. onBeforeBody(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipBodyCallback. onBeforeBody(IsChart chart, List<TooltipItem> items)
Returns text to render before the body section.
If returnsnull
or empty list, it will be ignored.List<String>
AbstractTooltipFooterCallback. onBeforeFooter(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipFooterCallback. onBeforeFooter(IsChart chart, List<TooltipItem> items)
Returns text to render before the footer section.
If returnsnull
or empty list, it will be ignored.default List<String>
TooltipLabelCallback. onBeforeLabel(IsChart chart, TooltipItem item)
Returns text to render before an individual label.
This will be called for each item in the tooltip.
If returnsnull
or empty list, it will be ignored.List<String>
AbstractTooltipTitleCallback. onBeforeTitle(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipTitleCallback. onBeforeTitle(IsChart chart, List<TooltipItem> items)
Returns the text to render before the title.
If returnsnull
or empty list, it will be ignored.void
TooltipExternalCallback. onExternal(IsChart chart, TooltipModel model)
External tooltips callback allows you to hook in the tooltip rendering process so that you can render the tooltip in your own custom way.List<String>
AbstractTooltipFooterCallback. onFooter(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipFooterCallback. onFooter(IsChart chart, List<TooltipItem> items)
Returns text to render as the footer of the tooltip.
If returnsnull
or empty list, it will be ignored.List<String>
AbstractTooltipLabelCallback. onLabel(IsChart chart, TooltipItem item)
default List<String>
TooltipLabelCallback. onLabel(IsChart chart, TooltipItem item)
Returns text to render for an individual item in the tooltip.
If returnsnull
or empty list, it will be ignored.TooltipLabelColor
AbstractTooltipLabelCallback. onLabelColor(IsChart chart, TooltipItem item)
default TooltipLabelColor
TooltipLabelCallback. onLabelColor(IsChart chart, TooltipItem item)
Returns the colors and borders to render for the tooltip item.
If returnsnull
, it will be ignored.default TooltipLabelPointStyle
TooltipLabelCallback. onLabelPointStyle(IsChart chart, TooltipItem item)
Returns the point style to use instead of color boxes ifusePointStyle
is true.
Default implementation uses the point style from the data set points.IsColor
AbstractTooltipLabelCallback. onLabelTextColor(IsChart chart, TooltipItem item)
default IsColor
TooltipLabelCallback. onLabelTextColor(IsChart chart, TooltipItem item)
Returns the colors for the text of the label for the tooltip item.
If returnsnull
, it will be ignored.List<String>
AbstractTooltipTitleCallback. onTitle(IsChart chart, List<TooltipItem> items)
default List<String>
TooltipTitleCallback. onTitle(IsChart chart, List<TooltipItem> items)
Returns text to render as the title of the tooltip.
If returnsnull
or empty list, it will be ignored. -
Uses of IsChart in org.pepstock.charba.client.colors
Methods in org.pepstock.charba.client.colors with parameters of type IsChart Modifier and Type Method Description void
CanvasObjectFactory. clear(IsChart chart)
Clears the cache of loaded patterns and gradients, needed when a chart is destroy.CanvasGradientItem
CanvasObjectFactory. createGradient(IsChart chart, Gradient gradient, int datasetIndex, int index)
Creates a canvas gradient java script object using a Charba gradient and a chart instance which must provide a canvas instance and its context.CanvasPatternItem
CanvasObjectFactory. createPattern(IsChart chart, Pattern pattern)
Creates a 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. -
Uses of IsChart in org.pepstock.charba.client.commons
Methods in org.pepstock.charba.client.commons with parameters of type IsChart Modifier and Type Method Description void
Merger. load(IsChart chart, NativeObjectContainer options, ChartEnvelop<NativeObject> 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) -
Uses of IsChart in org.pepstock.charba.client.configuration
Methods in org.pepstock.charba.client.configuration with parameters of type IsChart Modifier and Type Method Description void
ConfigurationOptions. load(IsChart chart, Configuration configuration)
Constructors in org.pepstock.charba.client.configuration with parameters of type IsChart Constructor Description AbstractPieOptions(IsChart chart, IsDefaultScaledOptions defaultvalues)
Builds the object storing the chart instance and defaults.AreaOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.Axis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance.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.CartesianAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type.CartesianCategoryAxis(IsChart chart)
Builds the object storing the chart instance.CartesianCategoryAxis(IsChart chart, String id)
Builds the object storing the chart instance.CartesianCategoryAxis(IsChart chart, String id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianCategoryAxis(IsChart chart, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianCategoryAxis(IsChart chart, ScaleId id)
Builds the object storing the chart instance.CartesianCategoryAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type, to use to extend the axis.CartesianCategoryAxis(IsChart chart, ScaleId id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianLinearAxis(IsChart chart)
Builds the object storing the chart instance.CartesianLinearAxis(IsChart chart, String id)
Builds the object storing the chart instance.CartesianLinearAxis(IsChart chart, String id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianLinearAxis(IsChart chart, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianLinearAxis(IsChart chart, ScaleId id)
Builds the object storing the chart instance.CartesianLinearAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type, to use to extend the axis.CartesianLinearAxis(IsChart chart, ScaleId id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianLogarithmicAxis(IsChart chart)
Builds the object storing the chart instance.CartesianLogarithmicAxis(IsChart chart, String id)
Builds the object storing the chart instance.CartesianLogarithmicAxis(IsChart chart, String id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianLogarithmicAxis(IsChart chart, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianLogarithmicAxis(IsChart chart, ScaleId id)
Builds the object storing the chart instance.CartesianLogarithmicAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type, to use to extend the axis.CartesianLogarithmicAxis(IsChart chart, ScaleId id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianTimeAxis(IsChart chart)
Builds the object storing the chart instance.CartesianTimeAxis(IsChart chart, String id)
Builds the object storing the chart instance.CartesianTimeAxis(IsChart chart, String id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianTimeAxis(IsChart chart, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianTimeAxis(IsChart chart, ScaleId id)
Builds the object storing the chart instance.CartesianTimeAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type.CartesianTimeAxis(IsChart chart, ScaleId id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianTimeSeriesAxis(IsChart chart)
Builds the object storing the chart instance.CartesianTimeSeriesAxis(IsChart chart, String id)
Builds the object storing the chart instance.CartesianTimeSeriesAxis(IsChart chart, String id, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianTimeSeriesAxis(IsChart chart, AxisKind kind)
Builds the object storing the chart instance and axis type.CartesianTimeSeriesAxis(IsChart chart, ScaleId id)
Builds the object storing the chart instance.CartesianTimeSeriesAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type.CartesianTimeSeriesAxis(IsChart chart, ScaleId id, AxisKind kind)
Builds the object storing the chart instance and axis type.ConfigurationOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and defaults options.DoughnutOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default options.HorizontalBarOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.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.RadialAxis(IsChart chart, ScaleId id, AxisType type, AxisKind kind)
Builds the object storing the chart instance and cartesian axis type.ScalesOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.ScalesOptions(IsChart chart, IsDefaultScaledOptions defaultValues, boolean createScale)
Builds the object storing the chart instance and default values and creating a scale options if requested.ScatterOptions(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.VerticalLineOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values. -
Uses of IsChart in org.pepstock.charba.client.controllers
Methods in org.pepstock.charba.client.controllers that return IsChart Modifier and Type Method Description IsChart
ControllerContext. getChart()
Returns the CHARBA chart instance. -
Uses of IsChart in org.pepstock.charba.client.data
Methods in org.pepstock.charba.client.data with parameters of type IsChart Modifier and Type Method 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)
Constructor parameters in org.pepstock.charba.client.data with type arguments of type IsChart Constructor Description Data(ChartEnvelop<IsChart> envelop)
Creates the object with an empty native object. -
Uses of IsChart in org.pepstock.charba.client.datalabels
Methods in org.pepstock.charba.client.datalabels with parameters of type IsChart Modifier and Type Method Description static DataLabelsOptionsBuilder
DataLabelsOptionsBuilder. create(IsChart chart)
Returns new builder instance using the chart global options.Constructors in org.pepstock.charba.client.datalabels with parameters of type IsChart Constructor Description DataLabelsOptions(IsChart chart)
Creates newDataLabelsPlugin.ID
plugin options, relating to chart instance for default. -
Uses of IsChart in org.pepstock.charba.client.events
Methods in org.pepstock.charba.client.events that return IsChart Modifier and Type Method Description IsChart
AbstractEvent. getChart()
Returns the chart instance, stored in the event as source.IsChart
ChartEventContext. getChart()
Returns the CHARBA chart instance.IsChart
DatasetSelectionEvent. getChart()
protected abstract IsChart
HandlerManager. getSource()
Returns a chart instance as source for all events.Constructors in org.pepstock.charba.client.events with parameters of type IsChart Constructor Description ChartEventContext(IsChart chart, Chart nativeChart)
Creates the object with the chart instance, creating a change native event.ChartEventContext(IsChart chart, NativeAbstractMouseEvent event)
Creates the object with the chart instance, creating a change native event.DatasetSelectionEvent(NativeBaseEvent nativeEvent, IsChart chart, DatasetReference item)
Creates the event with dataset reference item related to the click and the chart instance -
Uses of IsChart in org.pepstock.charba.client.geo
Classes in org.pepstock.charba.client.geo that implement IsChart Modifier and Type Class Description class
BubbleMapChart
A Bubble Map, as known as Proportional Symbol is used to render maps with dots that are scaled according to some numerical value.
It is based on a regular bubble chart where the positioning is done using latitude and longitude to create a legend for the different radi.class
ChoroplethChart
A choropleth chart is used to render maps with the area filled according to some numerical value.Constructors in org.pepstock.charba.client.geo with parameters of type IsChart Constructor Description ColorAxis(IsChart chart)
Builds the object storing the chart instance and axis type.ColorLogarithmicAxis(IsChart chart)
Builds the object storing the chart instance and axis type.ProjectionAxis(IsChart chart)
Builds the object storing the chart instance.SizeAxis(IsChart chart)
Builds the object storing the chart instance and axis type.SizeLogarithmicAxis(IsChart chart)
Builds the object storing the chart instance and axis type. -
Uses of IsChart in org.pepstock.charba.client.gwt.widgets
Classes in org.pepstock.charba.client.gwt.widgets with type parameters of type IsChart Modifier and Type Class Description class
AbstractChartWidget<C extends IsChart>
Base class of all GWT WIDGET charts.Classes in org.pepstock.charba.client.gwt.widgets that implement IsChart Modifier and Type Class Description class
AbstractChartWidget<C extends IsChart>
Base class of all GWT WIDGET charts.class
AreaChartWidget
AREA chart GWT WIDGET implementation.
A 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
BarChartWidget
BAR chart GWT WIDGET 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
BubbleChartWidget
BUBBLE chart GWT WIDGET 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
BubbleMapChartWidget
BUBBLEMAP chart GWT WIDGET implementation.
A Bubble Map, as known as Proportional Symbol is used to render maps with dots that are scaled according to some numerical value.
It is based on a regular bubble chart where the positioning is done using latitude and longitude to create a legend for the different radi.class
ChoroplethChartWidget
CHOROPLETH chart GWT WIDGET implementation.
A choropleth chart is used to render maps with the area filled according to some numerical value.class
DoughnutChartWidget
DOUGHNUT chart GWT WIDGET implementation.
A doughnut charts are divided in the segments, the arc of each segment shows the proportional value of each piece of data.class
GaugeChartWidget
GAUGE chart GWT WIDGET implementation.class
HorizontalBarChartWidget
HORIZONTAL BAR GWT WIDGET 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
LineChartWidget
LINE chart GWT WIDGET 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
MatrixChartWidget
MATRIX chart GWT WIDGET implementation.
A matrix chart shows magnitude of a phenomenon as color in two dimensions.
The variation in color may be by hue or intensity, giving obvious visual cues to the reader about how the phenomenon is clustered or varies over space.class
MeterChartWidget
METER chart GWT WIDGET implementation.class
PieChartWidget
PIE chart GWT WIDGET implementation.
A pie charts are divided in the 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
PolarAreaChartWidget
POLAR AREA chart GWT WIDGET 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
RadarChartWidget
RADAR chart GWT WIDGET 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
SankeyChartWidget
Sankey charts are a type of flow diagram in which the width of the arrows is proportional to the flow rate.
Sankey diagrams emphasize the major transfers or flows within a system.
They help locate the most important contributions to a flow.
They often show conserved quantities within defined system boundaries.class
ScatterChartWidget
SCATTER chart GWT WIDGET 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
StackedAreaChartWidget
STACKED AREA chart GWT WIDGET 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
StackedBarChartWidget
STACKED BAR chart GWT WIDGET 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
StackedLineChartWidget
STACKED LINE chart GWT WIDGET 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
TimeSeriesBarChartWidget
BAR chart GWT WIDGET implementation for time series.
A bar chart provides a way of showing data values represented as vertical bars.class
TimeSeriesLineChartWidget
LINE chart GWT WIDGET implementation for time series.
A line chart is a way of plotting data points on a line.class
TreeMapChartWidget
TREEMAP chart GWT WIDGET implementation.
A treemap chart is used for displaying hierarchical data using nested figures, usually rectangles.class
VerticalLineChartWidget
Vertical LINE chart GWT WIDGET 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. -
Uses of IsChart in org.pepstock.charba.client.impl.callbacks
Methods in org.pepstock.charba.client.impl.callbacks with parameters of type IsChart Modifier and Type Method Description static double
Percentage. compute(IsChart chart, double value, AbstractDatasetContext context)
Computes the percentage of the value based on the data of datasets.static double
Percentage. compute(IsChart chart, double value, AbstractDatasetContext context, boolean stacked)
Computes the percentage of the value based on the data of datasets. -
Uses of IsChart in org.pepstock.charba.client.impl.charts
Classes in org.pepstock.charba.client.impl.charts that implement IsChart Modifier and Type Class Description class
GaugeChart
GAUGE chart implementation.class
MeterChart
METER chart implementation. -
Uses of IsChart in org.pepstock.charba.client.impl.plugins
Methods in org.pepstock.charba.client.impl.plugins that return IsChart Modifier and Type Method Description IsChart
HtmlLegendItem. getChart()
Returns the chart instanceMethods in org.pepstock.charba.client.impl.plugins with parameters of type IsChart Modifier and Type Method Description void
DatasetsItemsSelector. cleanSelection(IsChart chart)
Clears the selection on the chart.void
DatasetsItemsSelector. cleanSelection(IsChart chart, boolean fireEvent)
Clears the selection on the chart and set if an event should fire on clear action.static ChartBackgroundColorOptionsBuilder
ChartBackgroundColorOptionsBuilder. create(IsChart chart)
Returns new builder instance using the chart global options.static ChartPointerOptionsBuilder
ChartPointerOptionsBuilder. 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.static CrosshairOptionsBuilder
CrosshairOptionsBuilder. create(IsChart chart)
Returns new builder instance using the chart global options.static DatasetsItemsSelectorOptionsBuilder
DatasetsItemsSelectorOptionsBuilder. create(IsChart chart)
Returns new builder instance using the chart global options.static HtmlLegendOptionsBuilder
HtmlLegendOptionsBuilder. create(IsChart chart)
Returns new builder instance using chart global options as default.double
DatasetsItemsSelector. getPadding(IsChart chart)
Returns the padding height used by selection cleaner 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
DatasetsItemsSelector. setSelection(IsChart chart, double from, double to)
Selects an area, invoked programmatically.
Values on axis are retrieved as number (CartesianLinearAxis
orCartesianLogarithmicAxis
).void
DatasetsItemsSelector. setSelection(IsChart chart, String from, String to)
Selects an area, invoked programmatically.
Values on axis are retrieved as string (CartesianCategoryAxis
).void
DatasetsItemsSelector. setSelection(IsChart chart, Date from, Date to)
Selects an area, invoked programmatically.
Values on axis are retrieved as date (CartesianTimeAxis
orCartesianTimeSeriesAxis
).Constructors in org.pepstock.charba.client.impl.plugins with parameters of type IsChart Constructor 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.CrosshairOptions(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. -
Uses of IsChart in org.pepstock.charba.client.items
Methods in org.pepstock.charba.client.items that return IsChart Modifier and Type Method Description IsChart
AnimationItem. getChart()
Returns the CHARBA chart instance.IsChart
ScaleItem. getChart()
Returns the CHARBA chart instance.IsChart
TooltipItem. getChart()
Returns the CHARBA chart instance.Methods in org.pepstock.charba.client.items with parameters of type IsChart Modifier and Type Method Description boolean
LegendItem. isHidden(IsChart chart)
Returnstrue
if this item represents a hidden data set.
Label will be rendered with a strike-through effectvoid
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.Constructors in org.pepstock.charba.client.items with parameters of type IsChart Constructor Description DatasetReference(IsChart chart, ChartEnvelop<NativeObject> envelop)
Creates the item using a chart instance and a native java script object which contains all properties. -
Uses of IsChart in org.pepstock.charba.client.labels
Methods in org.pepstock.charba.client.labels with parameters of type IsChart Modifier and Type Method Description static LabelsOptionsBuilder
LabelsOptionsBuilder. create(IsChart chart)
Returns new builder instance using the chart global options.Constructors in org.pepstock.charba.client.labels with parameters of type IsChart Constructor Description LabelsOptions(IsChart chart)
Creates newLabelsPlugin.ID
plugin options, relating to chart instance for default. -
Uses of IsChart in org.pepstock.charba.client.matrix
Classes in org.pepstock.charba.client.matrix that implement IsChart Modifier and Type Class Description class
MatrixChart
A matrix chart shows magnitude of a phenomenon as color in two dimensions.
The variation in color may be by hue or intensity, giving obvious visual cues to the reader about how the phenomenon is clustered or varies over space. -
Uses of IsChart in org.pepstock.charba.client.options
Methods in org.pepstock.charba.client.options that return IsChart Modifier and Type Method Description IsChart
ExtendedOptions. getChart()
Returns the chart instance which is using the options.Constructors in org.pepstock.charba.client.options with parameters of type IsChart Constructor Description ExtendedOptions(IsChart chart, IsDefaultScaledOptions defaultValues, ChartEnvelop<NativeObject> envelop)
Creates an options with default provider.ExtendedOptions(IsChart chart, IsDefaultScaledOptions defaultValues, ConfigurationEnvelop<NativeObject> envelop)
Creates an options with default provider. -
Uses of IsChart in org.pepstock.charba.client.plugins
Methods in org.pepstock.charba.client.plugins with parameters of type IsChart Modifier and Type Method Description void
Plugins. load(IsChart chart, Configuration configuration)
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
Plugins. onChartConfigure(Configuration config, IsChart chart)
Invokes the on configuration method to inform the plugins that the chart is going to be initialized.void
AbstractPluginOptions. store(IsChart chart)
Stores this options in the chart plugins options. -
Uses of IsChart in org.pepstock.charba.client.plugins.hooks
Methods in org.pepstock.charba.client.plugins.hooks with parameters of type IsChart Modifier and Type Method Description void
AfterBuildTicksHook. onAfterBuildTicks(IsChart chart, PluginScaleArgument argument)
Called after scale has build its ticks.
This hook is called separately for each scale in the chart.void
AfterDataLimitsHook. onAfterDataLimits(IsChart chart, PluginScaleArgument argument)
Called after scale data limits are calculated.
This hook is called separately for each scale in the chart.void
AfterDatasetDrawHook. onAfterDatasetDraw(IsChart chart, PluginDatasetArgument item)
Called after the 'chart' datasets at the given 'args.index' have been drawn (datasets are drawn in the reverse order).
Note that this hook will not be called if the datasets drawing has been previously cancelled.void
AfterDatasetsDrawHook. onAfterDatasetsDraw(IsChart chart)
Called after the 'chart' datasets have been drawn.
Note that this hook will not be called if the datasets drawing has been previously cancelled.void
AfterDatasetsUpdateHook. onAfterDatasetsUpdate(IsChart chart, PluginUpdateArgument argument)
Called after the 'chart' datasets have been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.void
AfterDatasetUpdateHook. onAfterDatasetUpdate(IsChart chart, PluginDatasetArgument item)
Called after the 'chart' datasets at the given 'args.index' has been updated.
Note that this hook will not be called if the datasets update has been previously cancelled.void
AfterDestroyHook. onAfterDestroy(IsChart chart)
Called after the chart has been destroyed.void
AfterDrawHook. onAfterDraw(IsChart chart)
Called after the 'chart' has been drawn.
Note that this hook will not be called if the drawing has been previously cancelled.void
AfterEventHook. onAfterEvent(IsChart chart, PluginEventArgument argument)
Called after the 'event' has been consumed.
Note that this hook will not be called if the 'event' has been previously discarded.void
AfterInitHook. onAfterInit(IsChart chart, Chart nativeChart)
Called after 'chart' has been initialized and before the first update.void
AfterLayoutHook. onAfterLayout(IsChart chart)
Called after the 'chart' has been layed out.
Note that this hook will not be called if the layout update has been previously cancelled.void
AfterRenderHook. onAfterRender(IsChart chart)
Called after the 'chart' has been fully rendered (and animation completed).
Note that this hook will not be called if the rendering has been previously cancelled.void
AfterTooltipDrawHook. onAfterTooltipDraw(IsChart chart, PluginTooltipArgument item)
Called after drawing the 'tooltip'.
Note that this hook will not be called if the tooltip drawing has been previously cancelled.void
AfterUpdateHook. onAfterUpdate(IsChart chart, PluginUpdateArgument argument)
Called after 'chart' has been updated and before rendering.
Note that this hook will not be called if the chart update has been previously cancelled.void
BeforeBuildTicksHook. onBeforeBuildTicks(IsChart chart, PluginScaleArgument argument)
Called before scale builds its ticks.
This hook is called separately for each scale in the chart.void
BeforeDataLimitsHook. onBeforeDataLimits(IsChart chart, PluginScaleArgument argument)
Called before scale data limits are calculated.
This hook is called separately for each scale in the chart.boolean
BeforeDatasetDrawHook. onBeforeDatasetDraw(IsChart chart, PluginDatasetArgument item)
Called before drawing the 'chart' dataset at the given 'args.index' (datasets are drawn in the reverse order).
If any plugin returnsfalse
, the datasets drawing is cancelled until another 'render' is triggered.boolean
BeforeDatasetsDrawHook. onBeforeDatasetsDraw(IsChart chart)
Called before drawing the 'chart' datasets.boolean
BeforeDatasetsUpdateHook. onBeforeDatasetsUpdate(IsChart chart, PluginUpdateArgument argument)
Called before updating the 'chart' datasets.
If any plugin returnsfalse
, the datasets update is cancelled until another 'update' is triggered.boolean
BeforeDatasetUpdateHook. onBeforeDatasetUpdate(IsChart chart, PluginDatasetArgument item)
Called before updating the 'chart' dataset at the given 'args.index'.
If any plugin returnsfalse
, the datasets update is cancelled until another 'update' is triggered.void
BeforeDestroyHook. onBeforeDestroy(IsChart chart)
Called before the chart is being destroyed.boolean
BeforeDrawHook. onBeforeDraw(IsChart chart)
Called before drawing 'chart' at every animation frame.
If any plugin returnsfalse
, the frame drawing is cancelled until another 'render' is triggered.void
BeforeElementsUpdateHook. onBeforeElementsUpdate(IsChart chart)
Called during the update process, before any chart elements have been created.boolean
BeforeEventHook. onBeforeEvent(IsChart chart, PluginEventArgument argument)
Called before processing the specified 'event'.
If any plugin returnsfalse
, the event will be discarded.void
BeforeInitHook. onBeforeInit(IsChart chart)
Called before initializing 'chart'.boolean
BeforeLayoutHook. onBeforeLayout(IsChart chart)
Called before laying out 'chart'.
If any plugin returnsfalse
, the layout update is cancelled until another 'update' is triggered.boolean
BeforeRenderHook. onBeforeRender(IsChart chart)
Called before rendering 'chart'.boolean
BeforeTooltipDrawHook. onBeforeTooltipDraw(IsChart chart, PluginTooltipArgument item)
Called before drawing the 'tooltip'.
If any plugin returnsfalse
, the tooltip drawing is cancelled until another 'render' is triggered.boolean
BeforeUpdateHook. onBeforeUpdate(IsChart chart, PluginUpdateArgument argument)
Called before updating 'chart'.
If any plugin returnsfalse
, the update is cancelled (and thus subsequent render(s)) until another 'update' is triggered.void
ConfigureHook. onConfigure(IsChart chart)
Called before initializing configuration of 'chart'.void
InstallHook. onInstall(IsChart chart)
Called when plugin is installed for this chart instance.
This hook is also invoked for disabled plugins (options equals to false).void
ResetHook. onReset(IsChart chart)
Called during chart reset.void
ResizeHook. onResize(IsChart chart, PluginResizeArgument argument)
Called after the chart as been resized.void
StartHook. onStart(IsChart chart)
Called when a plugin is starting.
This happens when chart is created or plugin is enabled.void
StopHook. onStop(IsChart chart)
Called when a plugin stopping.
This happens when chart is destroyed or plugin is disabled.void
UninstallHook. onUninstall(IsChart chart)
Called after chart is destroyed on all plugins that were installed for that chart.
This hook is also invoked for disabled plugins (options equals to false). -
Uses of IsChart in org.pepstock.charba.client.positioner
Methods in org.pepstock.charba.client.positioner with parameters of type IsChart Modifier and Type Method Description Point
TooltipPositioner. computePosition(IsChart chart, List<DatasetReference> items, Point eventPoint)
Applies own logic to returns the point where the tooltip must be showed.Point
Positioner. invokePositioner(IsTooltipPosition position, IsChart chart, List<DatasetReference> items, Point eventPoint)
Invokes an existing positioner to get the point. -
Uses of IsChart in org.pepstock.charba.client.sankey
Classes in org.pepstock.charba.client.sankey that implement IsChart Modifier and Type Class Description class
SankeyChart
Sankey charts are a type of flow diagram in which the width of the arrows is proportional to the flow rate.
Sankey diagrams emphasize the major transfers or flows within a system.
They help locate the most important contributions to a flow.
They often show conserved quantities within defined system boundaries. -
Uses of IsChart in org.pepstock.charba.client.treemap
Classes in org.pepstock.charba.client.treemap that implement IsChart Modifier and Type Class Description class
TreeMapChart
A treemap chart is used for displaying hierarchical data using nested rectangles.
Treemaps display hierarchical (tree-structured) data as a set of nested rectangles.
Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches.
A leaf node's rectangle has an area proportional to a specified dimension of the data.
When the color and size dimensions are correlated in some way with the tree structure, one can often easily see patterns that would be difficult to spot in other ways, such as whether a certain color is particularly relevant.
A second advantage of treemaps is that, by construction, they make efficient use of space. -
Uses of IsChart in org.pepstock.charba.client.utils
Methods in org.pepstock.charba.client.utils with parameters of type IsChart Modifier and Type Method Description static CursorType
Utilities. getCursorOfChart(IsChart chart)
Returns the cursor currently set in the chart. -
Uses of IsChart in org.pepstock.charba.client.zoom
Methods in org.pepstock.charba.client.zoom with parameters of type IsChart Modifier and Type Method Description static double
ZoomPlugin. getZoomLevel(IsChart chart)
Returns the zoom level whenZoomPlugin
is activated.static boolean
ZoomPlugin. isZoomedOrPanned(IsChart chart)
Returns whether the chart has been zoomed or panned, for instance whether the initial scale of any axis is different to the one used currently.static void
ZoomPlugin. pan(IsChart chart, double amount)
Pans the chart on demand, programmatically.static void
ZoomPlugin. pan(IsChart chart, double amount, TransitionKey transition)
Pans the chart on demand, programmatically.static void
ZoomPlugin. pan(IsChart chart, Amount amount)
Pans the chart on demand, programmatically.static void
ZoomPlugin. pan(IsChart chart, Amount amount, TransitionKey transition)
Pans the chart on demand, programmatically.static void
ZoomPlugin. reset(IsChart chart)
Reset the zoom of chart whenZoomPlugin
is activated.static void
ZoomPlugin. reset(IsChart chart, TransitionKey transition)
Reset the zoom of chart whenZoomPlugin
is activated.static void
ZoomPlugin. zoom(IsChart chart, double amount)
Zooms the chart on demand, programmatically.static void
ZoomPlugin. zoom(IsChart chart, double amount, TransitionKey transition)
Zooms the chart on demand, programmatically.static void
ZoomPlugin. zoom(IsChart chart, Amount amount)
Zooms the chart on demand, programmatically.static void
ZoomPlugin. zoom(IsChart chart, Amount amount, TransitionKey transition)
Zooms the chart on demand, programmatically.static void
ZoomPlugin. zoomScale(IsChart chart, ScaleId scaleId, ScaleRange range)
Zooms the chart scale on demand, programmatically.static void
ZoomPlugin. zoomScale(IsChart chart, ScaleId scaleId, ScaleRange range, TransitionKey transition)
Zooms the chart scale on demand, programmatically.Constructors in org.pepstock.charba.client.zoom with parameters of type IsChart Constructor Description ZoomOptions(IsChart chart)
Creates newZoomPlugin.ID
plugin options, relating to chart instance for default.
-