Class Figure

java.lang.Object
tech.tablesaw.plotly.components.Figure

public class Figure extends Object
Plotly's graph description places attributes into two categories: traces (objects that describe a single series of data in a graph like Scatter or Heatmap) and layout attributes that apply to the rest of the chart, like the title, xaxis, or annotations).

Figure combines the two parts, associating one or more traces with a layout. If the layout is null a default layout is provided.

  • Constructor Details

  • Method Details

    • divString

      public String divString(String divName)
    • getLayout

      public Layout getLayout()
    • setLayout

      public void setLayout(Layout layout)
    • getConfig

      public Config getConfig()
    • setConfig

      public void setConfig(Config config)
    • getEventHandlers

      public EventHandler[] getEventHandlers()
    • setEventHandlers

      public void setEventHandlers(EventHandler... handlers)
    • getTraces

      public Trace[] getTraces()
    • setTraces

      public void setTraces(Trace... data)
    • asJavascript

      public String asJavascript(String divName)
    • buildContext

      protected void buildContext(String divName)
    • plotFunction

      protected String plotFunction(String divName)
    • eventHandlerFunction

      protected String eventHandlerFunction(String targetName, String divName)
    • getContext

      public Map<String,Object> getContext()
    • builder

      public static Figure.FigureBuilder builder()