Class SankeyChartWidget

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, IsChart, IsDatasetCreator<SankeyDataset>

    public class SankeyChartWidget
    extends AbstractChartWidget<SankeyChart>
    implements IsDatasetCreator<SankeyDataset>
    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.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • SankeyChartWidget

        public SankeyChartWidget()
        Builds the object.
      • SankeyChartWidget

        protected SankeyChartWidget​(SankeyChart extendedChart)
        Builds the chart.
        This is must be extended for controller which are based on this chart.
        Parameters:
        extendedChart - new chart
    • Method Detail

      • getOptions

        public SankeyOptions getOptions()
        Description copied from interface: IsChart
        Returns the options of chart.
        Specified by:
        getOptions in interface IsChart
        Returns:
        the options of chart.
      • newDataset

        public SankeyDataset newDataset​(boolean hidden)
        Description copied from interface: IsDatasetCreator
        Creates a new dataset related to chart type.
        Specified by:
        newDataset in interface IsDatasetCreator<SankeyDataset>
        Parameters:
        hidden - if true, it will be initially hidden.
        Returns:
        a new dataset related to chart type.