Google图表图例间距问题

时间:2018-04-05 10:36:01

标签: javascript css charts google-visualization

您好我正在尝试在我的应用程序中配置谷歌图表,但面临一个奇怪的问题。

传奇是浓缩和重叠的。

这些是我的选择

var options = {
            fontName: 'Roboto',
            height: 400,
            fontSize: 12,
            chartArea: {
                left: '8%',
                width: '100%',
                height: 350
            },
            isStacked: true,
            tooltip: {
                textStyle: {
                    fontName: 'Roboto',
                    fontSize: 12
                }
            },
            vAxis: {
                title: '',
                titleTextStyle: {
                    fontSize: 12,
                    italic: false
                },
                gridlines:{
                    color: '#f5f5f5',
                    count: 10,
                },
                // format: '$#,###',
                minValue: 0,
                // ticks: [0,10,20,30]

            },
            legend: {
                position: 'top',
                alignment: 'right',
                // textStyle: {
                //     fontSize: 13
                // }
            },
            colors: [ '#f9c003','#487ee2','#487ee2']
        };

但是得到这样的结果

enter image description here

0 个答案:

没有答案