Gauge Position

17 Nov 20171 minute to read

Semi-circular Gauge can be positioned within the canvas element which provides better appearance for the gauge in the canvas.


  • Semi-circular Gauge can be positioned with the help of the attribute called GaugePosition. It is an enumerable value. You can position the gauge away from the corner with the help of the DistanceFromCorner attribute.
  • The possible enum values for the gaugePosition are as follows:
    1. TopLeft
    2. TopCenter
    3. TopRight
    4. MiddleLeft
    5. Center
    6. MiddleRight
    7. BottomLeft
    8. BottomCenter
    9. BottomRight

// To set dimension of the canvas.

// To set gauge position.

// To set gauge distance from corner.

// To set frame settings.

// To set frame start angle.

// To set frame end angle.

// To set basic scale settings.
.Scales(SC =>{SC.Radius(100)
				.Border(border => border.Width(0.5))
public partial class CircularGaugeController : Controller
     //        // GET: /ToolTip/        
	 public ActionResult Semicircular()
		return View();

Execute the above code to render the following output.

Semi-circular Gauge with default top left position