Class Chart

java.lang.Object
com.vaadin.flow.component.Component
io.jmix.chartsflowui.kit.component.JmixChart
io.jmix.chartsflowui.component.Chart
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class Chart extends JmixChart implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Chart is a component for showing data in graphical form. Allows to configure axes, series, legend, tooltip, data source and other options. For more detailed information, see the documentation.
See Also:
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • dataItemKeyMapper

      protected Function<DataItem,String> dataItemKeyMapper
  • Constructor Details

    • Chart

      public Chart()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • initComponent

      protected void initComponent()
      Overrides:
      initComponent in class JmixChart
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • withTitle

      public Chart withTitle(Title title)
    • withLegend

      public Chart withLegend(AbstractLegend<?> legend)
    • withGrid

      public Chart withGrid(Grid grid)
    • withXAxis

      public Chart withXAxis(XAxis axis)
    • withYAxis

      public Chart withYAxis(YAxis axis)
    • withPolar

      public Chart withPolar(Polar polar)
    • withRadiusAxis

      public Chart withRadiusAxis(RadiusAxis axis)
    • withAngleAxis

      public Chart withAngleAxis(AngleAxis axis)
    • withRadar

      public Chart withRadar(Radar radar)
    • withDataZoom

      public Chart withDataZoom(AbstractDataZoom<?> dataZoom)
    • withTooltip

      public Chart withTooltip(Tooltip tooltip)
    • withAxisPointer

      public Chart withAxisPointer(AxisPointer axisPointer)
    • withToolbox

      public Chart withToolbox(Toolbox toolbox)
    • withDataSet

      public Chart withDataSet(DataSet dataSet)
    • withAria

      public Chart withAria(Aria aria)
    • withBrush

      public Chart withBrush(Brush brush)
    • withVisualMap

      public Chart withVisualMap(AbstractVisualMap<?> visualMap)
    • withSeries

      public Chart withSeries(AbstractSeries<?>... series)
    • withColorToPalette

      public Chart withColorToPalette(Color... color)
    • withBackgroundColor

      public Chart withBackgroundColor(Color backgroundColor)
    • withTextStyle

      public Chart withTextStyle(TextStyle textStyle)
    • withAnimation

      public Chart withAnimation(Boolean animation)
    • withAnimationThreshold

      public Chart withAnimationThreshold(Integer animationThreshold)
    • withAnimationDuration

      public Chart withAnimationDuration(Integer animationDuration)
    • withAnimationEasing

      public Chart withAnimationEasing(String animationEasing)
    • withAnimationDelay

      public Chart withAnimationDelay(Integer animationDelay)
    • withAnimationDurationUpdate

      public Chart withAnimationDurationUpdate(Integer animationDurationUpdate)
    • withAnimationEasingUpdate

      public Chart withAnimationEasingUpdate(String animationEasingUpdate)
    • withAnimationDelayUpdate

      public Chart withAnimationDelayUpdate(Integer animationDelayUpdate)
    • withStateAnimation

      public Chart withStateAnimation(ChartOptions.StateAnimation stateAnimation)
    • withBlendMode

      public Chart withBlendMode(ChartOptions.BlendMode blendMode)
    • withHoverLayerThreshold

      public Chart withHoverLayerThreshold(Integer hoverLayerThreshold)
    • withUseUtc

      public Chart withUseUtc(Boolean useUtc)
    • withNativeJson

      public Chart withNativeJson(String nativeJson)
    • initDataItemKeyMapper

      protected void initDataItemKeyMapper()
    • createSerializer

      protected JmixChartSerializer createSerializer()
      Overrides:
      createSerializer in class JmixChart