I have a battery graphic that I want the battery capacity to size to match the battery percentage read from the parameter.
iie: if the battery is 55% charged than the |ALARM colored Parameter box would be 55% the width of the batter shape container.
Reading through the docs I cannot figure out anyway to do this other than to break it down into 5 side by side rectangles and show/hide the set of 5 rectanges based on thresholds 20/40/60/80/100% or similar for example
Before I go down that path is there any way of having a shape width a % of the container or parent shape it is within base on a parameter value?
Hi Sam,
If you would like to have an option available through your Visio, you can consider using WPH path markup. Within the Visual Overview course, there is a video available that actually shows this use case. Feel free to have a look!
WPF Path Markup - DataMiner Dojo
Kind Regards,
Jarno
Hi Sam,
Another option could be to model this into a dashboard or low-code app (which could also be embedded into the visual overview, if needed). In a dashboard/low-code app, there is an option to color a bar depending on a percentage.
This can be achieved by linking the width of a component on the grid to a parameter
More information on https://docs.dataminer.services/user-guide/Advanced_Modules/Dashboards_and_Low_Code_Apps/Configuring_components/Template_Editor.html#specifying-layer-properties
Thank you for this!
I had marked that as complete but I think I watched that 2.5 years ago too early and confusing in my visio journey – looks like it's worth going through and watching all the videos again!