2727@* End:Hidden*@
2828
2929<div class =" control-section" >
30- <EjsCircularGauge id = " circular " >
30+ <EjsCircularGauge ID = " gauge " >
3131 <CircularGaugeAxes >
32- <CircularGaugeAxis StartAngle =" 300" EndAngle =" 60" Minimum =" 999" Maximum =" 2000" Radius =" 80%"
33- Annotations =" @annotations" LineStyle =" @lineStyle" LabelStyle =" @labelStyle"
34- MajorTicks =" @majorTicks" MinorTicks =" @minorTicks" Ranges =" @ranges" Pointers =" @pointers" >
35- </CircularGaugeAxis >
32+ <CircularGaugeAxis StartAngle =" 300" EndAngle =" 60" Minimum =" 999" Maximum =" 2000" Radius =" 80%" >
33+ <CircularGaugeAxisLineStyle Width =" 0.01" >
34+ </CircularGaugeAxisLineStyle >
35+ <CircularGaugeAxisMajorTicks Width =" 0.01" >
36+ </CircularGaugeAxisMajorTicks >
37+ <CircularGaugeAxisMinorTicks Width =" 0.01" >
38+ </CircularGaugeAxisMinorTicks >
39+ <CircularGaugeLabel Font =" @Font" >
40+ </CircularGaugeLabel >
41+ <CircularGaugePointers >
42+ <CircularGaugePointer Type =" PointerType.RangeBar" Value =1800 Radius =" 90%" Color =" #FFDD00" PointerWidth =" 30" >
43+ <CircularGaugeAnimation Enable =" false" Duration =" 0" >
44+ </CircularGaugeAnimation >
45+ </CircularGaugePointer >
46+ <CircularGaugePointer Value =1800 Radius =" 90%" Color =" #424242" PointerWidth =" 9" >
47+ <CircularGaugeAnimation Enable =" false" Duration =" 0" >
48+ </CircularGaugeAnimation >
49+ <CircularGaugeCap Radius =" 10" Color =" #424242" >
50+ <CircularGaugeCapBorder Width =" 0" >
51+ </CircularGaugeCapBorder >
52+ </CircularGaugeCap >
53+ </CircularGaugePointer >
54+ <CircularGaugeRanges >
55+ <CircularGaugeRange Start =" 1000" End =" 2000" Radius =" 90%" StartWidth =" 30" EndWidth =" 30" Color =" #E0E0E0" >
56+ </CircularGaugeRange >
57+ </CircularGaugeRanges >
58+ </CircularGaugePointers >
59+ <CircularGaugeAnnotations >
60+ <CircularGaugeAnnotation content =" <div style='color:#666666;font-size:35px;'>1800</div>" Angle =" 0" Radius =" 110%" ZIndex =" 1" >
61+ </CircularGaugeAnnotation >
62+ </CircularGaugeAnnotations >
63+ </CircularGaugeAxis >
3664 </CircularGaugeAxes >
37- </EjsCircularGauge >
65+ </EjsCircularGauge >
3866</div >
3967
4068@code {
41-
42- public object annotations = new List <object > {
43- new
44- {
45- content = " <div style='color:#666666;font-size:35px;'>1800</div>" ,
46- angle = " 0" ,
47- radius = " 110%" ,
48- zIndex = 1
49- }
50- };
51- public object lineStyle = new { width = " 0" };
52- public object labelStyle = new { font = new { size = " 0px" } };
53- public object majorTicks = new { width = " 0" };
54- public object minorTicks = new { width = " 0" };
55- public object ranges = new List <object > {
56- new
57- {
58- start = 1000 ,
59- end = 2000 ,
60- radius = " 90%" ,
61- startWidth = 30 ,
62- endWidth = 30 ,
63- color = " #E0E0E0"
64- }
65- };
66- public object pointers = new List <object > {
67- new
68- {
69- type = " RangeBar" ,
70- value = 1800 ,
71- radius = " 90%" ,
72- color = " #FFDD00" ,
73- animation = new { enable = false , duration = " 0" },
74- pointerWidth = 30
75- },
76- new
77- {
78- value = 1800 ,
79- radius = " 90%" ,
80- color = " #424242" ,
81- animation = new { enable = false , duration = " 0" },
82- pointerWidth = 9 ,
83- cap = new { radius = 10 , color = " #424242" , border = new { width = " 0" } }
84- }
85- };
69+ public class font
70+ {
71+ public String size { get ; set ; }
72+ }
73+ public font Font = new font {
74+ size = " 0px"
75+ };
8676}
0 commit comments