06-07-2023 05:23 AM
Hi All,
I want to modify the standard gauge needle to have an arrow on the tip. Or, alternatively, something like compass.
Is there a way to modify the standard needle in gweb?
Thanks,
Irfan
Solved! Go to Solution.
06-20-2023 08:45 PM
Hi Irfan,
The Gauge in G Web Development Software does not have a straightforward way to modify the visual of the needle. I did find a way to update the needle to look like an arrow using the JavaScript Library Interface (JSLI) but it is not as straightforward as providing a new image and instead involves writing JavaScript to generate SVG Paths used by third party control internal to the Gauge control.
I modified the Control Extensions for WebVI example to include the example of using the JSLI to change the Gauge needle to render as an arrow in the Gauge - Needle - Set Arrow VI. As this modifies the internal behavior of an NI control make sure to test the behavior thoroughly in your application and be prepared to modify the example as needed.
06-20-2023 09:42 PM
Thanks Milan for your help. Looking into it.
07-10-2023 05:58 AM
Thanks for this interesting information!