BulletGraph
BulletGraph
Displaying Values
This example demonstrates how to use the ShowText properties with the BulletGraph controls.
Features
Settings
ShowText: All
Description
This example demonstrates how to use the ShowText properties with the BulletGraph 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 | using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using MvcExplorer.Models; namespace MvcExplorer.Controllers { public partial class BulletGraphController : Controller { public ActionResult ShowText() { ViewBag.DemoSettings = true ; ViewBag.DemoSettingsModel = new ClientSettingsModel { Settings = CreateShowTextSettings() }; return View(); } private static IDictionary< string , object []> CreateShowTextSettings() { var settings = new Dictionary< string , object []> { { "ShowText" , new object []{ "All" , "Value" , "MinMax" , "None" }} }; return settings; } } } |
1 2 3 4 5 6 7 8 9 10 | @ { ClientSettingsModel demoSettingsModel = ViewBag.DemoSettingsModel; } < c1-bullet-graph id = "@demoSettingsModel.ControlId" min = "0" max = "10" good = "3" bad = "4" value = "5" target = "6" show-text = "All" width = "500px" > </ c1-bullet-graph > @section Description{ @Html .Raw(BulletGraphRes.ShowText_Text0) } |