Skip to content

Commit

Permalink
Merge pull request #1111 from xcube-dev/yogesh-xxx-fix-chartlets-inte…
Browse files Browse the repository at this point in the history
…gration

 Fix Chartlets v0.1.0 demo integration with xcube
  • Loading branch information
b-yogesh authored Jan 21, 2025
2 parents 9d4d5a0 + 338cb3e commit f1b3c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies:
- altair
- pip
- pip:
- chartlets >=0.0.28,<0.1.0
- chartlets >=0.1.0
# Testing
- flake8 >=3.7
- kerchunk
Expand Down
4 changes: 2 additions & 2 deletions examples/serve/panels-demo/my_viewer_ext/my_panel_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import shapely
import shapely.ops
from chartlets import Component, Input, State, Output
from chartlets.components import Box, Button, CircularProgress, Plot, Select
from chartlets.components import Box, Button, CircularProgress, Select, VegaChart

from xcube.constants import CRS_CRS84
from xcube.core.geom import mask_dataset_by_geometry, normalize_geometry
Expand All @@ -28,7 +28,7 @@
def render_panel(ctx: Context, dataset_id: str | None = None) -> Component:
dataset = get_dataset(ctx, dataset_id)

plot = Plot(id="plot", chart=None, style={"paddingTop": 6})
plot = VegaChart(id="plot", chart=None, style={"paddingTop": 6})

var_names, var_name_1, var_name_2 = get_var_select_options(dataset)

Expand Down

0 comments on commit f1b3c3d

Please sign in to comment.