What is the difference between the Figure and the Charts objects

The plotting interface creates a bokeh.plotting.figure.Figure object. The charts interface creates bokeh.charts.chart.Chart objects. These two object types look pretty similar. What is the difference between them? Is one a subclass or a container of another? Can I use the plotting interface to add glyphs to a graph created using charts?

Hi,

Both are subsets of Plot, which is the class that represents every kind of plot on the JavaScript side. As of recent releases, the glyph methods, .circle, etc. have also been added to Chart for convenience. For more information about the different APIs please refer to

  http://bokeh.pydata.org/en/latest/docs/user_guide/concepts.html

Thanks,

Bryan

ยทยทยท

On Dec 5, 2016, at 3:13 AM, 'Ivan Petrov' via Bokeh Discussion - Public <[email protected]> wrote:

The `plotting` interface creates a `bokeh.plotting.figure.Figure` object. The charts interface creates `bokeh.charts.chart.Chart` objects. These two object types look pretty similar. What is the difference between them? Is one a subclass or a container of another? Can I use the `plotting` interface to add glyphs to a graph created using `charts`?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/9d64dc7c-3d27-4c3f-844d-bb92d6aedd5b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.