option = {
xAxis: [
{ type: 'category', position: 'bottom', data: ['测试1', ''] },
{ type: 'category', position: 'bottom', data: ['', '测试2'] }
],
yAxis: { type: 'value' },
series: [
{ type: 'bar', xAxisIndex: 0, barWidth: 30, data: [90], color: '#3279F1' },
{
type: 'bar',
xAxisIndex: 1,
barWidth: 30,
data: ['', 90],
color: '#3279F1',
itemStyle: {
// borderRadius: 5 统一设置四个角的圆角大小
// borderRadius: [5, 5, 0, 0](顺时针左上,右上,右下,左下)
// 让柱状图柱体头部变成半圆,一般根据你的barWidth的值设置
borderRadius: [30, 30, 0, 0]
}
}
]
};
option = {
xAxis: {
type: 'value',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'category'
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}
]
};
option = {
xAxis: {
type: 'value',
data: ['测试1', '测试2', '测试3', '测试4'],
axisLine: { show: true },
axisTick: { show: true },
axisLabel: { show: true },
splitLine: { show: true }
},
yAxis: {
type: 'category',
axisLine: { show: true },
axisTick: { show: true },
axisLabel: { show: true },
splitLine: { show: true }
},
series: [
{
type: 'bar',
barWidth: 40,
data: [120, 80, 60, 130]
}
]
};
此页面不支持夜间模式!
已进入夜间模式!
已进入普通模式!
搜索框不允许为空
签到成功!经验+5!芋圆币+2!
签到失败!今日已签到!
需要登录社区账号才可以进入!