Interface GenericHcObject

All Known Subinterfaces:
CommonHighchartBuilder, CustomHighchartBuilder, HcAxis, HcChart, HcCredits, HcExporting, HcLegend, HcMarker, HcOptions3d, HcPieDataLabels, HcPiePlotOptions, HcPlotOptions, HcSerie, HcSerieDataObject, HcSeriesDataLabels, HcSeriesPlotOptions, HcTooltip, HighchartBuilder

public interface GenericHcObject
Since:
3.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds a custom string attribute.
    void
    Adds raw attribute to the object.
    Value will NOT wrapped to quotes and will NOT be escaped.
    It is required for defining some piece of JavaScript inside of JSON.
  • Method Details

    • addRawAttribute

      void addRawAttribute(@NotNull String name, @NotNull String value)
      Adds raw attribute to the object.
      Value will NOT wrapped to quotes and will NOT be escaped.
      It is required for defining some piece of JavaScript inside of JSON.
      Parameters:
      name - name of attribute
      value - value of attribute
    • addCustomStringAttribute

      void addCustomStringAttribute(@NotNull String name, @NotNull String value)
      Adds a custom string attribute. Value will be escaped as other string values.
      It is required for defining some custom string fields inside of JSON.
      Parameters:
      name - name of attribute
      value - string value of attribute
      Since:
      3.9.2