echarts 總計顯示在柱子上

 {
                        name: '',
                        barWidth: 20,
                        type: 'bar',
                        stack: '總計',
                        barGap: '-90%',
                        smooth: false,
                        label: {
                            normal: {
                                show: true,
                                position: 'right',
                                textStyle: {
                                    color: '#FFF',
                                    fontWeight: 'bold'
                                },
                                formatter: function(v) {
                                    return "共" + (v.value);
                                }
                            }
                        },
                        itemStyle: {
                            normal: {
                                color: 'rgba(128, 128, 128, 0)',
                                borderWidth: 0,
                                borderColor: '#1FBCD2'
                            }
                        },
                        data: f_data
                    }

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章