Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
});
// 开始配置坐标轴
chart.axis('x', {
label: function label(text) {
return {
text: text + ' gr' // 格式化坐标轴显示文本
};
},
grid: {
stroke: '#d9d9d9',
lineWidth: 1,
lineDash: [ 2, 2 ]
}
});
chart.axis('y', {
line: F2.Util.mix({}, F2.Global._defaultAxis.line, {
top: false
}),
label: function label(text) {
if (text > 0) {
return {
text: text + ' gr'
};
}
}
});
chart.tooltip(false);
chart.point().position('x*y').color('#1890ff')
.size('z', [ 10, 40 ])
.shape('circle')
.style({
lineWidth: 1,