![JAR search and dependency download from the Maven repository](/logo.png)
com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.Data Maven / Gradle / Ivy
Show all versions of highcharts Show documentation
package com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.ClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.MouseOutHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.MouseOverHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.RemoveHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.SelectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.UnselectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.serieswaterfall.data.UpdateHandler;
/**
* An array of data points for the series. For the waterfall
series type, points can be given in the following ways:
*
* - An array of numerical values. In this case, the numerical values will
* be interpreted as
y
options. The x
values will be automatically calculated,
* either starting at 0 and incremented by 1, or from pointStart
* and pointInterval
given in the series options. If the axis
* has categories, these will be used. Example:
* data: [0, 5, 3, 5]
*
* An array of arrays with 2 values. In this case, the values correspond to x,y
. If the first value is a string, it is
* applied as the name of the point, and the x
value is inferred.
data: [
* [0, 7],
* [1, 8],
* [2, 3]
* ]
*
*
* An array of objects with named values. The objects are
* point configuration objects as seen below. If the total number of data points exceeds the series' turboThreshold, this option is not available.
*
* data: [{
* x: 1,
* y: 8,
* name: "Point2",
* color: "#00FF00"
* }, {
* x: 1,
* y: 8,
* name: "Point1",
* color: "#FF00FF"
* }]
*
*
*/
public interface Data {
/**
* Individual color for the point. By default the color is pulled from the global colors
array.
*
*/
String color();
/**
* Individual color for the point. By default the color is pulled from the global colors
array.
*
*/
Data color(String color);
/**
* Individual data label for each point. The options are the same as the ones for plotOptions.series.dataLabels
*
*/
String dataLabels();
/**
* Individual data label for each point. The options are the same as the ones for plotOptions.series.dataLabels
*
*/
Data dataLabels(String dataLabelsAsJsonString);
/**
* The id
of a series in the drilldown.series array to use for a drilldown for this point.
*
*/
String drilldown();
/**
* The id
of a series in the drilldown.series array to use for a drilldown for this point.
*
*/
Data drilldown(String drilldown);
void addClickHandler(ClickHandler clickHandler);
void addMouseOutHandler(MouseOutHandler mouseOutHandler);
void addMouseOverHandler(MouseOverHandler mouseOverHandler);
void addRemoveHandler(RemoveHandler removeHandler);
void addSelectHandler(SelectHandler selectHandler);
void addUnselectHandler(UnselectHandler unselectHandler);
void addUpdateHandler(UpdateHandler updateHandler);
/**
* An id for the point. This can be used after render time to get a pointer to the point object through chart.get()
.
*
*/
String id();
/**
* An id for the point. This can be used after render time to get a pointer to the point object through chart.get()
.
*
*/
Data id(String id);
/**
* When this property is true, the points acts as a summary column for the values added or substracted since the last intermediate sum, or since the start of the series. The y
value is ignored.
*
*/
boolean isIntermediateSum();
/**
* When this property is true, the points acts as a summary column for the values added or substracted since the last intermediate sum, or since the start of the series. The y
value is ignored.
*
*/
Data isIntermediateSum(boolean isIntermediateSum);
/**
* When this property is true, the point display the total sum across the entire series. The y
value is ignored.
*
*/
boolean isSum();
/**
* When this property is true, the point display the total sum across the entire series. The y
value is ignored.
*
*/
Data isSum(boolean isSum);
/**
* The name of the point as shown in the legend, tooltip, dataLabel etc.
*
* If the xAxis.type is set to category
, and no categories option exists, the category will be pulled from the point.name
of the last series defined. For multiple series, best practice however is to define xAxis.categories
.
*
*/
String name();
/**
* The name of the point as shown in the legend, tooltip, dataLabel etc.
*
* If the xAxis.type is set to category
, and no categories option exists, the category will be pulled from the point.name
of the last series defined. For multiple series, best practice however is to define xAxis.categories
.
*
*/
Data name(String name);
/**
* Whether the data point is selected initially.
*
*/
boolean selected();
/**
* Whether the data point is selected initially.
*
*/
Data selected(boolean selected);
/**
* The x value of the point. For datetime axes, the X value is the timestamp in milliseconds since 1970.
*
*/
double x();
/**
* The x value of the point. For datetime axes, the X value is the timestamp in milliseconds since 1970.
*
*/
Data x(double x);
/**
* The y value of the point.
*
*/
double y();
/**
* The y value of the point.
*
*/
Data y(double y);
String getFieldAsJsonObject(String fieldName);
Data setFieldAsJsonObject(String fieldName, String fieldValueAsJonObject);
String getFunctionAsString(String fieldName);
Data setFunctionAsString(String fieldName, String functionAsString);
}