title: Highcharts: custom datalabel for bar chart. Format in PlotOptions not working
body: <p>I am using highcharts to display data in my rails app. A picture speaks a thousand words...</p>
  
  <p><a href="https://i.stack.imgur.com/eCeKC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eCeKC.png" alt="enter image description here"></a></p>
  
  <p>Basically I am trying to get the y axis labels to be the bar chart datalabels and concatenate with the value....</p>
  
  <p>So for the first bar, the datalabel would be "idiopathic pulmonary fibrosis 37"</p>
  
  <p>The chart is being passed a variable "data" which is an array of objects that you can see in the console (5 objects in total with the attributes, count, name and y). </p>
  
  <p>My plot option set up is this:</p>
  
  <pre><code>      plotOptions: {
              series: {
                  dataLabels: {
                      format: '{x}',
                      enabled: true,
                      align: 'right',
                      color: '#294469',
                      shadow: false,
                      x: -25,
                      style: {"fontSize": "10px", "textShadow": "0px" }
                  },
                  pointPadding: 0.1,
                  groupPadding: 0
              }
          },
  </code></pre>
  
  <p>I can replace the format with '{y}' and that give me the value, but I can't get the string in there. Any thoughts....</p>