G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Needle image in gauge

Solved!
Go to solution

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

Thanks & Regards,
Irfan
(CLD)
https://haliatech.com/
0 Kudos
Message 1 of 4
(1,120 Views)
Solution
Accepted by topic author irfanabid

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.


Milan
Message 2 of 4
(1,025 Views)

Thanks Milan for your help. Looking into it.

Thanks & Regards,
Irfan
(CLD)
https://haliatech.com/
0 Kudos
Message 3 of 4
(1,015 Views)

Thanks for this interesting information! 

0 Kudos
Message 4 of 4
(874 Views)