Interface RepositoryWidgetScriptedChart


public interface RepositoryWidgetScriptedChart
Configured scripted chart widget resource object.
Since:
3.10.2
  • Method Summary

    Modifier and Type
    Method
    Description
    render(String width, String height)
    Renders a Scripted Chart from the provided resource object.
  • Method Details

    • render

      @NotNull String render(@Nullable String width, @Nullable String height)
      Renders a Scripted Chart from the provided resource object.

      Example:
      Use render(null, null) to draw a chart with the maximum possible width and height calculated proportionally to the width.
      Use render("50%", null) to draw a chart with a width that is half the available column space and the height calculated proportionally to the width.
      Use render("500px", "300px") to a draw chart with a fixed width of 500px and a height of 300px.

      Parameters:
      width - the width of the chart in pixels or percent. Use the null value to make the chart as wide as possible.
      height - the height of the chart in pixels. Use the null value to calculate height proportionally to the width.
      Returns:
      chart html markup