Skip to content

[FEATURE] Canvas: edge color scheme and node-size scaling - #921

Open
SoWieMarkus wants to merge 1 commit into
perses:mainfrom
PhilippMatthes:feat/canvas-edge-colors
Open

SoWieMarkus wants to merge 1 commit into
perses:mainfrom
PhilippMatthes:feat/canvas-edge-colors

Conversation

@SoWieMarkus

Copy link
Copy Markdown
Contributor

Description

Follow-up to #891, which was kept focused on automatic graph generation. This PR adds the value-driven styling that was split out of that review:

  • Edge color scheme - a dedicated edgeThresholds option so edges can be colored independently of nodes. When unset, edges fall back to the node thresholds, so existing dashboards keep their current edge colors.
  • Node-size scaling - nodeThresholdSizes + per-node sizeMode: "threshold" scale a node's base size by its bound value (relative to nodeDefaultSize). Generated nodes opt into this automatically.
  • Legend - when edges use their own color scheme, the panel now renders a separate titled Edges legend alongside the Nodes legend.

Screenshots

Bildschirmfoto 2026-10-30 um 13 17 08 Bildschirmfoto 2026-10-30 um 13 16 57

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

@SoWieMarkus
SoWieMarkus force-pushed the feat/canvas-edge-colors branch 2 times, most recently from da4e27f to 6ea4971 Compare November 6, 2026 13:30
Reintroduce the edge color scheme (edgeThresholds, falling back to node
thresholds) and value-driven node-size scaling (nodeThresholdSizes,
sizeMode) across runtime, editor, schema, and SDK.

Also surface edge colors in the legend: when edges use their own color
scheme, the panel renders a separate titled "Edges" legend alongside the
"Nodes" legend.

Signed-off-by: Markus Wieland <markus.wieland@sap.com>
Co-authored-by: Philipp Matthes <p.matthes@sap.com>
Signed-off-by: Philipp Matthes <p.matthes@sap.com>
@SoWieMarkus
SoWieMarkus force-pushed the feat/canvas-edge-colors branch from 4640309 to c153d43 Compare November 6, 2026 13:52
@SoWieMarkus
SoWieMarkus marked this pull request as ready for review November 6, 2026 13:59
@SoWieMarkus
SoWieMarkus requested review from Gladorme and removed request for a team November 6, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants