Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a label above each bar in HighCharts
    primarykey
    data
    text
    <p>I'm trying to put a label within a bar chart in Highcharts. In my case above each bar which you can see here:</p> <pre><code>$(function () { var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column' }, title: { text: 'Indicator per Sex' }, xAxis: { categories: [ 'Jan', 'Fev', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dez' ] }, yAxis: { allowDecimals: false, min: 0, title: { text: 'Consults' } }, tooltip: { formatter: function() { return '&lt;b&gt;'+ this.x +'&lt;/b&gt;&lt;br/&gt;'+ this.series.name +': '+ this.y +'&lt;br/&gt;'+ 'Total: '+ this.point.stackTotal; } }, plotOptions: { column: { stacking: 'normal' } }, series: [ { data: [29.9, 71.5, 106.4, 129.2, 144.0, 29.9, 71.5, 106.4, 129.2, 144.0, 10, 20], color: '#FF0011', stack: 0 }, { data: [30, 176.0, 135.6, 148.5, 216.4, 29.9, 71.5, 106.4, 129.2, 144.0, 10, 20], color: '#3333FF', stack: 0 }, { data: [29.9, 71.5, 106.4, 129.2, 144.0, 29.9, 71.5, 106.4, 129.2, 144.0, 10, 20], color: '#FF0011', stack: 1 }, { data: [30, 176.0, 135.6, 148.5, 216.4, 29.9, 71.5, 106.4, 129.2, 144.0, 10, 20], color: '#3333FF', stack: 1 }, { data: [29.9, 71.5, 106.4, 129.2, 144.0, 29.9, 71.5, 106.4, 129.2, 144.0, 10, 20], color: '#FF0011', stack: 2 }, { data: [30, 176.0, 135.6, 148.5, 216.4, 29.9, 71.5, 106.4, 129.2, 144.0, 10, 20], color: '#3333FF', stack: 2 }] }); }); });` </code></pre> <p>I tried, but when I add labels appear one label each bar. So, how do this?!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload