-
-
Notifications
You must be signed in to change notification settings - Fork 100
[fix] Enhance label styling in NetJSONGraph config #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] Enhance label styling in NetJSONGraph config #407
Conversation
Added background color, padding, and border radius to node label configuration for improved appearance. Also updated edge label and node label color and styling options for better customization.
…el config Replaced node IDs and names in netjsonmap.json with country-based identifiers and updated network links to reflect European geography. Changed network label to 'European Network'. In netjsongraph.config.js, node label display is now hidden, with lighter background and increased padding for improved visualization. Update node label config in test spec Changed label.show to false, adjusted backgroundColor opacity, and increased label padding in the NetJSONGraph test specification to better reflect updated UI requirements.
nemesifier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…-map-on-high-zoom-levels
Added logic to control label visibility for both normal and emphasis states based on the current zoom level in NetJSONGraphRender. This ensures labels are shown or hidden consistently as users zoom in or out.
[fix] Sync label visibility with zoom level in graph
Screen.Recording.2025-08-11.at.8.04.16.AM.movECharts shows labels in emphasis state even if normal label.show is false. |
nemesifier
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a lot better @cestercian, I still see some slight movement when hovering:
It seems the circle becomes slightly bigger and the label moves up a couple of pixels. Can we avoid this?
Introduced an 'emphasis' property with a 'scale' value to the node configuration in NetJSONGraphDefaultConfig, allowing nodes to scale on emphasis.
Screen.Recording.2025-08-12.at.10.24.33.PM.movHey @nemesifier , I have updated the configuration to match the desired result please let me know if any other changes are required |
|
Related to openwisp/openwisp-monitoring#688 |


Added background color, padding, and border radius to node label configuration for improved appearance. Also updated edge label and node label color and styling options for better customization.
Checklist
Reference to Existing Issue
Closes #189.
Description of Changes
backgroundColor,padding, andborderRadiusto the node label configuration for improved visual appearance.Screenshot