Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public void updatePointValue(int seriesIndex, int pointIndex, String json) {
   HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex);
   HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex);
   highchartPoint.update(json);
 }
Exemplo n.º 4
0
 public void updatePointValue(int seriesIndex, int pointIndex, double newValue) {
   HighchartSeries highchartSeries = jsOverlay.getSeries().get(seriesIndex);
   HighchartPoint highchartPoint = highchartSeries.getData().get(pointIndex);
   highchartPoint.update(newValue);
 }