Text on stacked bar charts
Question

My aplication is reactive. And im trying to get this 

I have put this on the HighChartsJSON parameter

"title: {
    text: 'Contagem de pedidos'
},
 plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
                inside: true,
                align: 'right',
                color: '#FFFFFF',
                x: -10,
                style: {
                    textOutline: '0'
              }
            }
        }
    },

series: [{
        name: 'Concluido',
        color: '#a6d250'
    },
    {   name: 'Em Curso',
        color: '#fac84e'
    },
    {   name: 'Devolvido Coordenador',
        color: '#f1482f'
    },
    {   name: 'Respondido Jurista',
        color: 'black'
    }
]

"

But im still getting only this:

Any idea of what im doing wrong?

Hi everybody,

I found a solution that worked for me.


plotOptions: {
        series: {
            stacking: 'normal',
            dataLabels: {
                enabled: true,
                format: '{y}'
            }
        }
    },

Regards, Flávio monteiro

Hi,

Try this :

"title: {
    text: 'Contagem de pedidos'
},
 plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
                inside: true,
                align: 'right',
                color: '#FFFFFF',
                x: -10,
                style: {
                    textOutline: '0'
              }
            }
        }
    },

series: [{
        name: 'Concluido',
        color: '#a6d250',
        data:[534]

    },
    {   name: 'Em Curso',
        color: '#fac84e',
        data:[734]
        
    },
    {   name: 'Devolvido Coordenador',
        color: '#f1482f',
        data:[343]
    },
    {   name: 'Respondido Jurista',
        color: 'black',
        data:[734]
    }
]

"

Hope this works.

Thanks.

Hi,

Thanks for the answer.

Still didnt work, and i already put values in the chart with a fetch data action.

Hi everybody,

I found a solution that worked for me.


plotOptions: {
        series: {
            stacking: 'normal',
            dataLabels: {
                enabled: true,
                format: '{y}'
            }
        }
    },

Regards, Flávio monteiro

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.