java.lang.Object
io.jmix.chartsflowui.kit.component.model.ChartObservableObject
io.jmix.chartsflowui.kit.component.model.series.Encode
All Implemented Interfaces:
Serializable

public class Encode extends ChartObservableObject
Define what is encoded to for each dimension of data.
Chart example:

    <charts:chart id="chart" height="100%" width="100%">
      <charts:dataSet>
          <charts:source dataContainer="stockDataDc" categoryField="date"
                         valueFields="open, close, low, high, volume"/>
      </charts:dataSet>

      // ...

      <charts:series>
          // Use only the values open, close, low, high for the series.
          <charts:candlestick>
              <charts:encode x="date" y="open, close, low, high"/>
          </charts:candlestick>

          // Use only volume value for the series.
          <charts:bar>
              <charts:encode x="date" y="volume"/>
          </charts:bar>
      </charts:series>
    </charts:chart>
 
More detailed information is provided in the documentation.
See Also:
  • Field Details

    • x

      protected String[] x
    • y

      protected String[] y
    • radius

      protected String[] radius
    • angle

      protected String[] angle
    • value

      protected String[] value
    • tooltip

      protected String[] tooltip
  • Constructor Details

    • Encode

      public Encode()
  • Method Details

    • getX

      public String[] getX()
    • setX

      public void setX(String... x)
    • getY

      public String[] getY()
    • setY

      public void setY(String... y)
    • getRadius

      public String[] getRadius()
    • setRadius

      public void setRadius(String... radius)
    • getAngle

      public String[] getAngle()
    • setAngle

      public void setAngle(String... angle)
    • getValue

      public String[] getValue()
    • setValue

      public void setValue(String... value)
    • getTooltip

      public String[] getTooltip()
    • setTooltip

      public void setTooltip(String... tooltip)
    • withX

      public Encode withX(String... x)
    • withY

      public Encode withY(String... y)
    • withRadius

      public Encode withRadius(String... radius)
    • withAngle

      public Encode withAngle(String... angle)
    • withValue

      public Encode withValue(String... value)
    • withTooltip

      public Encode withTooltip(String... tooltip)