var gauge = new ej.lineargauge.LinearGauge({
orientation: 'Horizontal',
axes: [{
minimum: 0,
maximum: 6,
line: {
width: 0
},
labelStyle: {
format: 'n0',
offset: 20
},
majorTicks: {
height: 0
},
minorTicks: {
height: 0
},
pointers: [{
height: 0,
}],
ranges: [
{
start: 0,
end: 2,
color: '#008000',
startWidth: 15,
endWidth: 15
},
{
start: 2,
end: 6,
startWidth: 15,
endWidth: 15,
color: '#A00000'
}
]
}],
annotations: [{
content: '<div style="width:200px;font-size:18px;">Goal Info</div>',
axisIndex: 0,
axisValue: 3,
y: -50, zIndex: '1'
}],
});
gauge.appendTo('#goalList');
|
var gauge = new ej.lineargauge.LinearGauge({
orientation: 'Horizontal',
axes: [{
minimum: 0,
maximum: 6,
line: {
width: 0
},
labelStyle: {
format: 'n0',
offset: 20
},
majorTicks: {
height: 0,
interval: 1
},
minorTicks: {
height: 0,
interval: 1
},
pointers: [{
height: 0,
}],
ranges: [
{
start: 0,
end: 2,
color: '#008000',
startWidth: 15,
endWidth: 15
},
{
start: 2,
end: 6,
startWidth: 15,
endWidth: 15,
color: '#A00000'
}
]
}],
annotations: [{
content: '<div style="width:200px;font-size:18px;">Goal Info</div>',
axisIndex: 0,
axisValue: 3,
y: -50, zIndex: '1'
}],
});
gauge.appendTo('#goalList'); |