laravel - 饼图下的轴/标签 - echarts
问题描述
我通过 Laravel 上的 Chartisan 包使用 echarts 库,但是当我渲染饼图时,在饼图下会呈现一条线。如何摆脱饼图下方的线条? eCharts 饼图
const goods_chart = new Chartisan({
renderer: 'svg',
el: '#goods_category_chart',
url: "@chart('goods_category_chart')",
hooks: new ChartisanHooks()
//.colors(['#4299E1','#62051f','#C07EF1','#67C560','#ECC94B'])
.title({
text:'Goods by Category (YTD)',
subtext:'Tonnes',
left:'center'
})
.legend({
orient: 'vertical',
left: 10,
},)
.datasets([{
type:'pie',
animationEasing: 'cubicInOut',
radius: ['45%', '70%'],
labelLine: {
show: true
},
emphasis: {
label: {
show: true,
fontSize: '15',
fontWeight: 'bold'
},
itemStyle:{
shadowBlur:10,
shadowOffsetX:0,
shadowColor:'rgba(0, 0, 0, 0.5)'
}
},
}])
.tooltip({trigger: 'item',formatter: "{a} <br/>{b} : {c} ({d}%)"}),
});
解决方案
您可以尝试添加 .axis(false) 这应该可以。
推荐阅读
- python - result = result.decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 321: invalid start byte
- javascript - 如何下载相册,其中包含使用 Streamsaver.js 的图像集
- django - 如何使用 inline_formsety 在模型/表单上的 clean() 函数中排除已删除的对象
- flutter - Flutter:writeAsString 不会创建任何文件
- python - CUPS-Add-Modify-Printer 无法在任何地方创建 IPP 打印机
- typescript - 返回值的断言函数?
- node.js - docker容器构建失败
- sql - Oracle sql 或 pl/sql:根据前一行值和日期列计算
- java - Android Room 数据库未通知我实时数据更改
- docker - 为 PHP-apache 容器设置本地域和 SSL