mckinsey / vizro

Vizro is a toolkit for creating modular data visualization applications.
https://vizro.readthedocs.io/en/stable/
Apache License 2.0
2.63k stars 118 forks source link

[Feat] Enable parametrisation of dynamic data functions #482

Closed antonymilne closed 4 months ago

antonymilne commented 4 months ago

Description

Completing https://github.com/McK-Internal/vizro-internal/issues/753 Builds on #479 (step 1 of 2)

This PR enables dynamic data function arguments to be parametrised by using vm.Parameter (parameter targets in a format: <target_component>.data_frame.<dynamic_data_argument>).

The focus of this PR is writing docs, unit tests, making the export_data action to take this type of parameter into account. So the refactoring changes in the /actions folder don't need to be reviewed in detail.

Comment out the following configuration inside vizro-core/hatch.toml in case you get a better idea of what happens when caching is enabled.

#DASH_DEBUG = "true"
#VIZRO_LOG_LEVEL = "DEBUG"

TODO


Screenshot

data

Notice