public void init(HighchartConfig config) { HighchartJsOverlay old = jsOverlay; if (old != null) { old.destroy(); } jsOverlay = config.renderTo(getElement()); }
public int getSeriesIndex(HighchartSeries series) { JsArray<HighchartSeries> serA = jsOverlay.getSeries(); for (int i = 0; i < serA.length(); i++) { if (serA.get(i) == series) { return i; } } return -1; }
public void slicePoint( int seriesIndex, int pointIndex, boolean sliced, boolean redraw, boolean animation) { HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex); HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex); highchartPoint.slice(sliced, redraw, animation); }
public void setAnimation(boolean animation) { jsOverlay.setAnimation(animation); }
public void updateyAxis( int axisIndex, double minimum, double maximum, boolean redraw, boolean animate) { JsArray<HighchartAxis> axes = jsOverlay.getyAxes(); axes.get(axisIndex).setExtremes(minimum, maximum, redraw, animate); }
public void setSeriesEnabled(int seriesIndex, boolean enabled) { jsOverlay.setSeriesEnabled(seriesIndex, enabled); }
public void removePoint(int pointIndex, int seriesIndex) { jsOverlay.removePoint(pointIndex, seriesIndex); }
public void updatePointValue(int seriesIndex, int pointIndex, String json) { HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex); HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex); highchartPoint.update(json); }
public void updatePointValue(int seriesIndex, int pointIndex, double newValue) { HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex); HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex); highchartPoint.update(newValue); }
public void addPoint(String pointJson, int seriesIndex, boolean shift) { jsOverlay.addPoint(pointJson, seriesIndex, true, shift); }
public void addDrilldown(String series, int seriesIndex, int pointIndex) { jsOverlay.addDrilldown(series, seriesIndex, pointIndex); }
public void updateSize() { jsOverlay.setSize(getOffsetWidth(), getOffsetHeight(), false, true); }