Private
Public Access
1
0

better pan/zoom

This commit is contained in:
Sander Roosendaal
2020-11-05 22:15:47 +01:00
parent 17477fe43a
commit eaba32af98

View File

@@ -4550,16 +4550,21 @@ def interactive_flexchart_stacked(id,r,xparam='time',
rowdata
)
TOOLS = 'save,pan,box_zoom,wheel_zoom,reset,tap,hover'
TOOLS = 'box_zoom,wheel_zoom,reset,tap,hover'
TOOLS2 = 'box_zoom,hover'
plot1 = Figure(x_axis_type=x_axis_type,y_axis_type=y1_axis_type,plot_width=920,plot_height=150,
tools=TOOLS,toolbar_location='above')
plot2 = Figure(x_axis_type=x_axis_type,y_axis_type=y2_axis_type,plot_width=920,plot_height=150,
tools=TOOLS,toolbar_location=None)
tools=TOOLS2,toolbar_location=None)
plot3 = Figure(x_axis_type=x_axis_type,y_axis_type=y3_axis_type,plot_width=920,plot_height=150,
tools=TOOLS,toolbar_location=None)
tools=TOOLS2,toolbar_location=None)
plot4 = Figure(x_axis_type=x_axis_type,y_axis_type=y4_axis_type,plot_width=920,plot_height=150,
tools=TOOLS,toolbar_location=None)
tools=TOOLS2,toolbar_location=None)
plot1.xaxis.visible=False
plot2.xaxis.visible=False
plot3.xaxis.visible=False
linked_crosshair = CrosshairTool(dimensions="height")
plot1.add_tools(linked_crosshair)
@@ -4785,6 +4790,7 @@ def interactive_flexchart_stacked(id,r,xparam='time',
layout.sizing_mode = 'scale_width'
script, div = components(layout)
js_resources = INLINE.render_js()
css_resources = INLINE.render_css()