RadialGauge
RadialGauge
Automatic Scaling
This example demonstrates how to use the StartAngle, SweepAngle, and AutoScale properties with the RadialGauge controls.
Features
Settings
SweepAngle: 90
StartAngle: 0
AutoScale: True
Description
This example demonstrates how to use the StartAngle, SweepAngle, and AutoScale properties with the RadialGauge controls.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using MvcExplorer.Models; namespace MvcExplorer.Controllers { public partial class RadialGaugeController : Controller { public ActionResult AutoScale() { ViewBag.DemoSettings = true ; ViewBag.DemoSettingsModel = new ClientSettingsModel { Settings = CreateAutoScaleSettings() }; return View(); } private static IDictionary< string , object []> CreateAutoScaleSettings() { var settings = new Dictionary< string , object []> { { "SweepAngle" , new object []{90, 180, 270, 360}}, { "StartAngle" , new object []{0, 90, 180, 270, 360}}, { "AutoScale" , new object []{ true , false }} }; return settings; } } } |
1 2 3 4 5 6 7 8 9 10 | @ { ClientSettingsModel demoSettingsModel = ViewBag.DemoSettingsModel; } < c1-radial-gauge id = "@demoSettingsModel.ControlId" min = "0" max = "10" value = "5" sweep-angle = "90" height = "200px" width = "500px" start-angle = "0" auto-scale = "true" > </ c1-radial-gauge > @section Description{ @Html .Raw(RadialGaugeRes.AutoScale_Text0) } |