Class 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.

    • Method Detail

      • 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)