第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

如何將網(wǎng)格線添加到 highcharts 中已生成的圖表?

如何將網(wǎng)格線添加到 highcharts 中已生成的圖表?

明月笑刀無情 2021-11-04 15:17:15
我有一個(gè)已經(jīng)生成的氣泡圖。我需要根據(jù)用戶可以選擇的復(fù)選框在同一圖表上添加/刪除網(wǎng)格線。我嘗試了類似以下的方法,但沒有奏效。setTimeout(function () {    var chart = $('#bubble-chart-container').highcharts();    chart.options.xAxis[0].gridLineWidth = 1;    chart.options.yAxis[0].gridLineWidth = 1;    chart.reflow();}, 500);
查看完整描述

1 回答

?
幕布斯6054654

TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超7個(gè)贊

您將需要像這樣使用chart.update(API 鏈接)方法:


HTML


<div id="container"></div>

<button id="addButton">Add lines</button>

<button id="removeButton">Remove lines</button>

Javascript


var chart = Highcharts.chart('container', {

  ...

});



$('#addButton').click(function() {

  chart.update({

    xAxis:{

        gridLineWidth: 1

    },

    yAxis:{

        gridLineWidth: 1

    }

  });

});


$('#removeButton').click(function() {

  chart.update({

    xAxis:{

        gridLineWidth: 0

    },

    yAxis:{

        gridLineWidth: 0

    }

  });

});


查看完整回答
反對(duì) 回復(fù) 2021-11-04
  • 1 回答
  • 0 關(guān)注
  • 185 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)