我有一个三种语言的高度表,其中包含来自数据库的数据。一些翻译后的标题将中断并填充两行。如果没有任何预防措施,这将溢出字幕:
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'
}, 请参阅此示例:http://jsfiddle.net/puhtu/
如果主标题分成两行,有没有办法动态移动字幕?
发布于 2013-04-10 19:59:26
它看起来像是个bug,所以我已经报告给我们的devs https://github.com/highslide-software/highcharts.com/issues/1704了
发布于 2014-05-22 20:57:47
虽然在一段时间之前,下面的代码为我修复了它,因为这仍然是一个问题:
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
},https://stackoverflow.com/questions/15888631
复制相似问题