LoginSignup
0
0

More than 5 years have passed since last update.

Highcharts色々テクニック集

Posted at

PDFだけ出力させないようにする

exportingでPDFだけのけものにする

        exporting: {
          buttons: {
            contextButton: {
              menuItems: ['printChart', 'separator', 'downloadPNG', 'downloadJPEG', 'downloadSVG']
            }
          },
        },

ボタンを押して動的に全グラフ削除

グラフを動的に制御したい時に重宝。全グラフを削除して新しいグラフを入れる場合とかに使う。
while でseriesの中身がなくなるまでremoveする。

$('#button').click(function () {
    while (chart.series.length) {
        chart.series[0].remove();
    }
    for (var i=1;i<new_data.length;i++) {
        chart.addSeries(new_data[i])
    }
});

全文はこちらから

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0