A ManiVault view that renders a legend for categorical cluster data or numeric point data. It is intended to accompany a plot: the view can follow a selected color dataset, show category colors or a numeric color scale, and highlight entries identified by linked selection actions.
The view accepts Points and Cluster datasets and renders the legend with native Qt widgets. Its exposed settings cover the selected dataset and dimension, color map, selection-related labels, and highlight color. In a coordinated workspace, ManiVault actions can pass the selected dataset, cluster/dimension names, and highlight color to the legend.
src/ChartLegendViewPlugin.cpp: dataset handling, legend rendering, and color interpolation.src/SettingsAction.cpp: user settings and serialization.src/ChartLegendViewPlugin.json: plugin display name and supported data dependencies.CMakeLists.txt: target, dependencies, and installation.
Build from this repository in a ManiVault development environment with CMake 3.22+, Qt 6 Widgets and WebEngineWidgets, and ManiVault Core, PointData, and ClusterData. WebEngineWidgets is also required by ManiVault's linked runtime dependencies. CMake resolves QtTooltipKit from a sibling checkout when present, or from the pinned FetchContent revision otherwise.
cmake -S . -B build -DManiVault_INSTALL_DIR="C:/Path/To/ManiVault"
cmake --build build --config ReleaseThe post-build install step in CMake installs the plugin to the ManiVault configuration directory.