= 10) {
min = Math.floor(min);
max = Math.ceil(max);
}
else {
if (max >= 2) {
min = Math.floor(min * 10) / 10;
max = Math.ceil(max * 10) / 10;
}
else {
min = Math.floor(min * 100) / 100;
max = Math.ceil(max * 100) / 100;
}
}
new iChart.LineBasic2D({
render: 'dvChart',
data: mydata,
border: { enable: false, },
width: chartWidth,
height: chartHeight,
tip: {
enable: true,
shadow: true,
showType: "fixed",
listeners: {
parseText: func);
});
var min = Math.min.apply(null, mins)
var max = Math.max.apply(null, maxs)
if (max >= 10) {
min = Math.floor(min);
max = Math.ceil(max);
}
else {
if (max >= 2) {
min = Math.floor(min * 10) / 10;
max = Ma }
}
},
legend: {
enable: false,
},
crosshair: {
enable: true,
line_color: '#62bce9'
},
sub_option: {
label: false,
hollow_inside: false,
point_size: 0,
},
coordinate: {
axis: {
enable: true,
width: [0, 0, 1, 1],
},
grids: {
录