RadialGauge
RadialGauge
Automatic Scaling
This example demonstrates how to use the startAngle, sweepAngle, and autoScale properties with the RadialGauge control.
Features
Settings
Sweep Angle: 90
Start Angle: 0
Auto Scale: True
Description
This example demonstrates how to use the startAngle, sweepAngle, and autoScale properties with the RadialGauge control.
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 32 33 34 | using MvcExplorer.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; 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 11 12 13 14 | @ { ClientSettingsModel demoSettingsModel = ViewBag.DemoSettingsModel; } @ (Html.C1().RadialGauge().Id(demoSettingsModel.ControlId) .Min(0).Max(10).Value(5) .SweepAngle(90).StartAngle(0) .AutoScale( true ).Height(200).Width(500) ) @section Description{ @Html .Raw(Resources.RadialGauge.AutoScale_Text0) } |