admin管理员组文章数量:1395424
How i can solve the problem of the values (dataLabels) below?
My JSFiddle: /
...
series: [{
name: 'zzzzzz',
data: [17.00, 1.00, 5.00, 0.00, 0.00, 35.00, 6.00, 13.00, 233.00, 2.00, 41.00],
tooltip: {
shared: true,
useHTML: true,
showInLegend: false,
pointFormat: '<span style=\"color:{series.color}; text-shadow: 0 1px 1px #ddd;\">{series.name}</span>: <span style=\"font-size:14px!important\"> {point.y}</span><br/>'
}
}
Thanks!!!
How i can solve the problem of the values (dataLabels) below?
My JSFiddle: http://jsfiddle/3kVJS/3/
...
series: [{
name: 'zzzzzz',
data: [17.00, 1.00, 5.00, 0.00, 0.00, 35.00, 6.00, 13.00, 233.00, 2.00, 41.00],
tooltip: {
shared: true,
useHTML: true,
showInLegend: false,
pointFormat: '<span style=\"color:{series.color}; text-shadow: 0 1px 1px #ddd;\">{series.name}</span>: <span style=\"font-size:14px!important\"> {point.y}</span><br/>'
}
}
Thanks!!!
Share Improve this question asked Mar 26, 2014 at 20:03 WilliamTeodoroWilliamTeodoro 611 silver badge11 bronze badges3 Answers
Reset to default 4Highcharts doesn't prevent from dataLabels overlapping. I have created simple module which prevent's from this, see simple demo: http://jsfiddle/menXU/1/
Use module by calling StaggerDataLabels(series);
, where series is array of all series in chart object.
In the fact it's duplicate of this question, but I couldn't report this.
Just add this inside tooltips you will get it what to do.
tooltip: { style: { padding: 20, fontWeight: 'bold', fontSize: '30px', } },
Hai Just add verticalAlign: 'bottom',
instead of using verticalAlign: 'top',
at the plotOptions
.
本文标签: javascriptOverlap datalabels line chart highchartsStack Overflow
版权声明:本文标题:javascript - Overlap datalabels line chart highcharts - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744112177a2591339.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论