tobia
Posts: 1
Joined: Mon Nov 19, 2012 4:47 pm

Legend navigation with useHtml

Hello

I'm having trouble when I enable both maxHeight and useHTML for the legend, in layout: vertical.

Is this a known bug? I'm using the latest version, 2.3.3

Image
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Legend navigation with useHtml

Try to use our beta release which should fix this issue

http://github.highcharts.com/master/highcharts.src.js
Sebastian Bochan
Highcharts Developer
valyan
Posts: 29
Joined: Wed Oct 16, 2013 9:37 am

Re: Legend navigation with useHtml

seba wrote:Try to use our beta release which should fix this issue

http://github.highcharts.com/master/highcharts.src.js
Using the specified file, but still, when used together "useHTML" and "maxHeight", can not scroll in the legend

Code: Select all

legend: 
{
  enabled: true,
  layout: 'vertical',
  align: 'right',
  width: 250,
  verticalAlign: 'top',
  useHTML: true,
  maxHeight: 300, 
  x: -70, // смещение по х
  y: 10,// смещение по у
  labelFormatter: function() 
  {
    var kol = "";
    for(var k = 0; k < json_result.length; k++)
    {
      if (json_result[k][1] == this.name) 
      {
         kol = json_result[k][0] + ' - ';
         break;
      }
     }
     if (kol == "") kol = all_count + ' - ';
     return this.name + '<br/>' + kol + this.y + '%<div style="width: 200px"><hr/></div>';
  }
}
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Legend navigation with useHtml

Seems that problem back again, I added comment in our bugtracker https://github.com/highslide-software/h ... ssues/1249
Sebastian Bochan
Highcharts Developer

Return to “Highcharts Usage”