下面是代码:
https://stackblitz.com/edit/ngx-echarts-odv9rp?file=src/app/app.component.html
TS
xAxis = {
type: "category",
boundaryGap: false,
data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
};
yAxis = {
type: "value",
max: "100"
};
series = [
{
data: [23.2, 24.3, 32.2, 36.5, 32.9, 52.2, 92.1],
type: "line",
areaStyle: {}
}
];<ngx-echarts
style="width: 300px; height: 300px;"
[xAxis]="xAxis"
[yAxis]="yAxis"
[series]="series">
</ngx-echarts>我要做的是将yAxis设置为5。对于示例0、5、10、15、20、25…到100。
如何将yAxis设置为5?
发布于 2020-03-19 06:55:27
使用间隔:
yAxis = {
type: "value",
max: "100",
interval: 5
}https://stackoverflow.com/questions/60752169
复制相似问题