Can you share sample example code to implement Linear Gauge like this 