Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x_range option not available from bokehJS (linked ranges) #9322

Closed
PBrockmann opened this issue Oct 24, 2019 · 1 comment
Closed

x_range option not available from bokehJS (linked ranges) #9322

PBrockmann opened this issue Oct 24, 2019 · 1 comment

Comments

@PBrockmann
Copy link

PBrockmann commented Oct 24, 2019

Tested with last 1.3.4 release.

In pyhton

xdr = DataRange1d(bounds=None)
p1 = figure(
        plot_width = 400,
        plot_height = 400,
        tools = "pan,wheel_zoom,box_zoom,reset,save",
        toolbar_location = "above",
        active_scroll = "wheel_zoom",
        x_range = xdr
)

I try to minic the previous part of python code to BokehJS, but I get the error:
Uncaught Error: models must be owned by only a single document

In JS

var xdr = new Bokeh.DataRange1d({bounds: "none"});
plot = new Bokeh.Plotting.figure({
          plot_width: 400,
          plot_height: 400,
          tools: "pan,wheel_zoom,box_zoom,reset,save",
          //active_scroll:  "wheel_zoom",           // not available as well
          x_range: xdr
});

More generally, I would like to produce linked plot from BokehJS.
Any working example ?

@bryevdv
Copy link
Member

bryevdv commented Oct 24, 2019

Hi @PBrockmann That particular message always illustrates a usage problem. Please head over to the Project Discourse to discuss support type questions. https://discourse.bokeh.org

@bryevdv bryevdv closed this as completed Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants