com.vaadin.flow.component.charts.model.

Class Title

    • Constructor Detail

      • Title

        public Title()
      • Title

        public Title(String text)
    • Method Detail

      • setAlign

        public void setAlign(HorizontalAlign align)

        The horizontal alignment of the title. Can be one of "left", "center" and "right".

        Defaults to: center

      • setFloating

        public void setFloating(Boolean floating)

        When the title is floating, the plot area will not move to make space for it.

        Defaults to: false

      • setMargin

        public void setMargin(Number margin)

        The margin between the title and the plot area, or if a subtitle is present, the margin between the subtitle and the plot area.

        Defaults to: 15

      • setText

        public void setText(String text)

        The title of the chart. To disable the title, set the text to null.

        Defaults to: Chart title

      • setUseHTML

        public void setUseHTML(Boolean useHTML)

        Whether to use HTML to render the text.

        Defaults to: false

      • setVerticalAlign

        public void setVerticalAlign(VerticalAlign verticalAlign)

        The vertical alignment of the title. Can be one of "top", "middle" and "bottom". When a value is given, the title behaves as if floating were true.

      • setWidthAdjust

        public void setWidthAdjust(Number widthAdjust)

        Adjustment made to the title width, normally to reserve space for the exporting burger menu.

        Defaults to: -44

      • setX

        public void setX(Number x)

        The x position of the title relative to the alignment within chart.spacingLeft and chart.spacingRight.

        Defaults to: 0