Skip to main content

Params

Allows users to create and manage various query parameters.

🔗 Explore Params: Parameters and Descriptions

Examples​

  • All the examples below show the combined use of params and other components to create a complete visualization.

Example 1 : Overview and Detail​

Using vg.params.intersect()

  • Allows selection of a region to be shared across different visualisations.
  • Links multiple charts and shares the same interaction parameters.
from shapelets.apps import dataApp, vg

app = dataApp()

app.title("Overview and Detail")

walk = app.sandbox.from_parquet('walk', ['random-walk.parquet'])

brush = vg.params.intersect()

app.mosaic(
vg.layouts.vconcat(
vg.plot(
vg.marks.areaY(walk, x='t', y='v', fill='steelblue'),
vg.interactors.intervalX(as_=brush),
width=700,
height=200
),
vg.plot(
vg.marks.areaY(walk, brush, x='t', y='v', fill='steelblue'),
yDomain='Fixed',
width=700,
height=200
)
)
)
Shapelets Basic Input
Shapelets 2024