如何仅显示带有高图的图形

how to only display the graph with highcharts

本文关键字:高图 图形 何仅 显示      更新时间:2023-09-26

我目前在仪表板上显示一个饼状图。但我想摆脱的标题,白色背景(设置为透明),评论和一切,但饼本身。

我该怎么做呢?在官方文档中找不到任何明确的方法。

谢谢

我已经根据你的技术编辑了我的答案:

设置背景色为透明,标题为空白。

$('#container').highcharts({
            chart: {
            backgroundColor:'rgba(255, 255, 255, 0)',
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: ''
            },

这能解决你的问题吗?

我找到了一个解决方案:

             $(function () {
                $('#salesPie').highcharts({
                    chart: {
                        backgroundColor:'transparent',
                    },
                    title: {
                        text: '',
                        default: "Chart title",
                    },
                });
            });