我试图将此Highchart.js条形图中的所有标签对齐到左侧,以便它们不重叠。但是,Highchart.js似乎覆盖了我添加的CSS。Highchart js条形图标签左对齐
有谁知道如何将这些标签移动到酒吧的左边,仍然让他们对齐到左边?
xAxis: [{
categories: ['Injustice: Gods Among Us ★', 'Tekken Tag Tournament 2 ★', 'Super Smash Bros. Melee ★', 'Persona 4 Arena', 'King of Fighters XIII', 'Dead or Alive 5 Ultimate', 'Street Fighter X Tekken Ver. 2013', 'Soulcalibur V'],
labels: {
align: 'left',
overflow: 'justify',
style: {
fontFamily: 'Arial',
fontSize: '20px',
color: '#333',
width: '350',
left: '-20px',
x: 0
},
formatter: function() {
return '<div> <span>' + this.value + '</span><span style="font-weight: bold">' + " " + '</span> </div>';
},
useHTML: true
}
http://jsfiddle.net/butlerjeff1/prcoo7vy/1/
可能重复:http://stackoverflow.com/questions/31523582/highcharts-how-to-push-the-categories-to-the-side/31538731#31538731 –