Skip to content

Commit

Permalink
Make Plotly.viewport nullable (#1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 19, 2021
1 parent 3822f49 commit 6ea83f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/models/plotly.py
Expand Up @@ -2,7 +2,7 @@
Defines a custom PlotlyPlot bokeh model to render Plotly plots.
"""
from bokeh.core.properties import (
Any, Dict, Enum, Int, Instance, List, String
Any, Dict, Either, Enum, Int, Instance, List, Null, String
)
from bokeh.models import LayoutDOM, ColumnDataSource

Expand Down Expand Up @@ -50,7 +50,7 @@ def __js_skip__(cls):
hover_data = Dict(String, Any)
clickannotation_data = Dict(String, Any)
selected_data = Dict(String, Any)
viewport = Dict(String, Any)
viewport = Either(Dict(String, Any), Null)
viewport_update_policy = Enum( "mouseup", "continuous", "throttle")
viewport_update_throttle = Int()
_render_count = Int()

0 comments on commit 6ea83f9

Please sign in to comment.