Highcharts-如何防止带换行符的长标题溢出字幕
我有一个三种语言的highchart,其中的数据来自数据库。一些翻译的标题将打断并填充两行。如果没有任何预防措施,这将溢出字幕:Highcharts-如何防止带换行符的长标题溢出字幕,highcharts,Highcharts,我有一个三种语言的highchart,其中的数据来自数据库。一些翻译的标题将打断并填充两行。如果没有任何预防措施,这将溢出字幕: title: { text: 'The quick brown fox jumps over the lazy dog and even more', style: { width: '320px' } }, subtitle: { text: 'Lorem ipsum dolor sit amet, consetetu
title: {
text: 'The quick brown fox jumps over the lazy dog and even more',
style: {
width: '320px'
}
},
subtitle: {
text: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr'
},
请参见此示例:
如果主标题分成两行,有没有办法动态移动字幕?它看起来像一个bug,所以我已经向我们的开发人员报告了它尽管不久前,以下内容为我修复了它,因为这仍然是一个问题:
title: {
text: "Hello very strange world where people tend to make long chart titles",
style: {
fontSize: '1.9vmin',
fontWeight: 'bold',
color: '#1381bc',
lineHeight: '15em' //This line did the trick
},
align: 'left',
x: 30,
y: 10
},