【发布时间】:2017-08-12 18:20:03
【问题描述】:
我正在使用高级图表,如何使工具提示或图例字体大小响应。如何将@media-query 用于工具提示。这是我的代码
var plotOptions = {
pie: {
allowPointSelect: true,
cursor: 'pointer',
depth: 35,
dataLabels: {
enabled: true,
format: '<b style="font-size:20px;">{point.name}:: {point.y:.1f}</b>',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
}
};
var legend={
enabled: true,
layout: 'vertical',
align: 'right',
width: 200,
verticalAlign: 'middle',
useHTML: true,
labelFormatter: function() {
return '<table style="border:0"><tr><td style="font-size:24px;"> ' + this.name + ' - </td> <td style="font-size:24px;"> ' + this.y + ' </td></tr></table> <br />';
};
【问题讨论】:
标签: javascript jquery css highcharts media-queries