如何在HighCharts中使用@Media Query

时间:2017-08-12 08:44:52

标签: javascript jquery css highcharts media-queries

我正在使用高图表图表,如何使工具提示或图例字体大小响应。如何使用@ 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 />';
};

0 个答案:

没有答案
相关问题