I am trying to add some customizations to the Linear Gauge control for MVC and am having some difficulty.
1. Remove the axis range numbers from below the chart.
2. Place the score (or progress) inside the bar.
I have a mockup image of what we need - attached in a zip as well as at the following link (
https://i.imgur.com/R9pFraj.png). If a Linear Gauge is not the correct control, please advise. I think it's pretty close I just have these two issues.
Many thanks in advance,
Matthew
Attachment:
bar_2b1d703f.zip
EDIT: This is the closest I have been able to get to what we need...
@Html.EJS().LinearGauge("container2_41").Width("80%").Load("onGaugeLoad").Container(new Syncfusion.EJ2.LinearGauge.LinearGaugeContainer
{
Width = 30,
BackgroundColor = "#E1FFF1",
Border = new Syncfusion.EJ2.LinearGauge.LinearGaugeBorder { Width = 1},
Offset = -20
}).Orientation(Syncfusion.EJ2.LinearGauge.Orientation.Horizontal).Axes(new List {
new Syncfusion.EJ2.LinearGauge.LinearGaugeAxis
{
Line = new Syncfusion.EJ2.LinearGauge.LinearGaugeLine { Offset = 30, Color = "#FFFFFF00" },
LabelStyle = new Syncfusion.EJ2.LinearGauge.LinearGaugeLabel { Offset = 50, Format = "{value}" },
MajorTicks = new Syncfusion.EJ2.LinearGauge.LinearGaugeTick { Interval = 65, Height = 10, Color="#FFFFFF00", Width = -100 },
MinorTicks = new Syncfusion.EJ2.LinearGauge.LinearGaugeTick { Interval = 0, Height = 10, Color="#FFFFFF00" },
Maximum = 100,
Ranges = new List
{
new Syncfusion.EJ2.LinearGauge.LinearGaugeRange
{
Start = 0.00001, End = 65, Color = "#1976D2", StartWidth = 30, EndWidth = 30
},
},
Pointers = new List
{
new Syncfusion.EJ2.LinearGauge.LinearGaugePointer
{
Value = 45, Height=15,Width=3,Placement = Syncfusion.EJ2.LinearGauge.Placement.Near,
Offset = -50,MarkerType = Syncfusion.EJ2.LinearGauge.MarkerType.Triangle, Color="#000000"
},
},
}
}).Render()