Skip to content

Commit 19b7aec

Browse files
committed
Fix Scale bindings warning
1 parent 7a18ffb commit 19b7aec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

chartlets.py/my_extension/my_panel_2.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ def make_figure(
8383
)
8484
.properties(width=300, height=300, title="Vega charts using Shorthand syntax")
8585
.add_params(selector)
86-
.interactive()
86+
# .interactive() # Using interactive mode will lead to warning
87+
# `WARN Scale bindings are currently only supported for scales with
88+
# unbinned, continuous domains.`
89+
# because it expects both x and y to be continuous scales,
90+
# but we have x as Nominal which leads to this warning.
91+
# This still works where we can only zoom in on the y axis but
92+
# with a warning.
8793
)
8894
return chart
8995

0 commit comments

Comments
 (0)