Interface SeriesBasedChart<T extends SeriesBasedChart>

All Superinterfaces:
Chart<T>, ChartModel<T>, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, CoordinateChart<T>, CoordinateChartModel<T>, HasColors<T>, HasMargins<T>, HasStartEffect<T>, RectangularChart<T>, RectangularChartModel<T>, SeriesBasedChartModel<T>
All Known Subinterfaces:
GanttChart, SerialChart
All Known Implementing Classes:
GanttChartImpl, SerialChartImpl, SeriesBasedChartImpl

public interface SeriesBasedChart<T extends SeriesBasedChart> extends RectangularChart<T>, SeriesBasedChartModel<T>
Base interface for SerialChart and GanttChart.
  • Method Details

    • addZoomListener

      Subscription addZoomListener(Consumer<Chart.ZoomEvent> listener)
      Adds a listener for zoom. Called when value of the chart zoom changed.
      Parameters:
      listener - a listener to add
      Returns:
      subscription
    • addCategoryItemClickListener

      Subscription addCategoryItemClickListener(Consumer<SeriesBasedChart.CategoryItemClickEvent> listener)
      Adds a listener for category item click. Called when user clicks on the category.
      Parameters:
      listener - a listener to add
      Returns:
      subscription
    • zoomOut

      void zoomOut()
      Zooms out, charts shows all available data.
    • zoomToIndexes

      void zoomToIndexes(int start, int end)
      Zooms the chart by the index of the category.
      Parameters:
      start - start index
      end - end index
    • zoomToDates

      void zoomToDates(Date start, Date end)
      Zooms the chart from one date to another.
      Parameters:
      start - start date
      end - end date