BulletGraph
スタイル設定
機能
サンプル
説明
この例では、「カスタムゲージ」の CSS クラスを BulletGraph に追加し、CSS ルールを定義して両方にオレンジ色のポインタを作成しました。
ソース
StylingController.cs
using Microsoft.AspNetCore.Mvc;
namespace MvcExplorer.Controllers
{
public partial class BulletGraphController : Controller
{
public ActionResult Styling()
{
return View();
}
}
}
Styling.cshtml
@section Styles{
<style>
.custom-gauge .wj-pointer path{
fill: #ffa500;
stroke: #cd853f;
}
</style>
}
<c1-bullet-graph min="0" max="10" good="3" bad="4" value="5" target="6" class="custom-gauge" width="500px">
</c1-bullet-graph>
@section Description{
@Html.Raw(BulletGraphRes.Styling_Text0)
}
マニュアル