Skip to content

Commit

Permalink
bokeh 2.4.0 dependecy
Browse files Browse the repository at this point in the history
  • Loading branch information
xavArtley committed Sep 24, 2021
1 parent d8aff55 commit 7a743e5
Show file tree
Hide file tree
Showing 6 changed files with 245 additions and 135 deletions.
10 changes: 6 additions & 4 deletions examples/example_parallel_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
palette=Viridis256, low=df[df.columns[0]].min(), high=df[df.columns[0]].max()
),
}
wd = pn.widgets.DataFrame(df, sizing_mode="stretch_width", height=300)
wd = pn.widgets.DataFrame(df, sizing_mode="stretch_both", height=300)
pc = ParallelCoordinates(
df,
drop=["name"],
Expand All @@ -19,6 +19,8 @@
sizing_mode="stretch_both"
)
wd.link(pc, selection="selection", bidirectional=True)
pn.Column(
pn.Card(wd, title="Table", sizing_mode="stretch_width"),
pn.Row(pn.Card(pc.controls()[0], scroll=True, sizing_mode="scale_height"), pc, sizing_mode="stretch_both"), sizing_mode="stretch_both").show()
template = pn.template.FastGridTemplate(title="Parallel Coordinates example")
template.sidebar.append(pc.controls()[0])
template.main[:2,:] = wd
template.main[2:6,:] = pc
template.servable()
7 changes: 1 addition & 6 deletions pcp/models/pcp_selection_tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,5 @@ export class PCPSelectionTool extends BoxSelectTool {

tool_name = "Parallel Selection"
//override event_type property define in BoxSelectTool
event_type: any = [
"tap" as "tap",
"pan" as "pan",
"move" as "move",
"press" as "press",
]
event_type: any = ["tap" as "tap", "pan" as "pan", "move" as "move", "press" as "press"]
}
Loading

0 comments on commit 7a743e5

Please sign in to comment.