久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

我如何啟用 Drag &加入 Highcharts 組織結構圖

How can i enable Drag amp; Drop in Highcharts organization-charts?(我如何啟用 Drag amp;加入 Highcharts 組織結構圖?)
本文介紹了我如何啟用 Drag &加入 Highcharts 組織結構圖?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我需要設置一個組織"類型的 Highcharts 圖表,它應該支持 Drag &將節點放在一起(移動樹內的節點).

I need to set up a Highcharts chart of type "organization" which should support Drag & Drop the Nodes on each other (to move the nodes inside the tree).

目前,我有一個組織"圖表,其中顯示了所有需要的信息.

Currently, I got an "organization" chart which displays all the needed information.

我嘗試使用 Highcharts.plotOptions.series.dragDrop-Events 但這根本不起作用.我還嘗試使用 Highcharts.series[organization].dataLabels.nodeFormatter-Callback 將外部 div 替換為具有屬性的 div: draggable="true" ondragstart="fun1(event)" ondrag="fun2(event)" ondrop="fun3(event)" ondragover="func(event)"

I tried to use the Highcharts.plotOptions.series.dragDrop-Events but that wasn't working at all. I also tried to use Highcharts.series[organization].dataLabels.nodeFormatter-Callback to replace the outer div by a div with attributes: draggable="true" ondragstart="fun1(event)" ondrag="fun2(event)" ondrop="fun3(event)" ondragover="func(event)"

我剛剛使用了 w3schools 的函數:

I just used the functions from w3schools:

function allowDrop(ev) {
  ev.preventDefault();
}

function drag(ev) {
  ev.dataTransfer.setData("text", ev.target.id);
}

function drop(ev) {
  ev.preventDefault();
  var data = ev.dataTransfer.getData("text");
  ev.target.appendChild(document.getElementById(data));
}

但這也不起作用.所以現在我被卡住了.

But that wasn't working either. So now I am stuck.

推薦答案

似乎Organizations圖表類型沒有實現拖放.您可以在官方 highcharts 論壇或 github 問題上閱讀該主題.

It seems that drag and drop is not implemented on Organizations chart type. You can read the thread in official highcharts forum or on github issues.

關注以下對話:Highcharts 論壇和Github 問題

這篇關于我如何啟用 Drag &加入 Highcharts 組織結構圖?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I get my jasmine tests fixtures to load before the javascript considers the document to be quot;readyquot;?(在 javascript 認為文檔“準備好之前,如何讓我的 jasmine 測試裝置加載?) - IT屋-程序員軟件開發技術
What do jasmine runs and waitsFor actually do?(jasmine 運行和等待實際上是做什么的?)
How to provide mock files to change event of lt;input type=#39;file#39;gt; for unit testing(如何提供模擬文件來更改 lt;input type=filegt; 的事件用于單元測試)
How to unit test a chained method using Jasmine(如何使用 Jasmine 對鏈式方法進行單元測試)
How do I inject $rootScope into an AngularJS unit test?(如何將 $rootScope 注入 AngularJS 單元測試?)
Jasmine - How to spy on a function call within a function?(Jasmine - 如何監視函數中的函數調用?)
主站蜘蛛池模板: 日日日日操 | 天天人人精品 | 四虎影院在线观看av | 国产亚洲精品精品国产亚洲综合 | 免费观看一级毛片视频 | 国产精品3区 | 亚洲国产网址 | 激情网站 | av在线免费观看网站 | 老熟女毛片 | 一区二区三区高清在线观看 | 亚洲精品乱码 | 国产精品精品视频一区二区三区 | 91精品国产综合久久久久久蜜臀 | 成人在线视频免费观看 | 天天操夜夜操免费视频 | 国产精品久久久久久久久久久久久久 | 91香蕉视频在线观看 | 精品国产乱码久久久久久88av | 国产日产欧产精品精品推荐蛮挑 | 亚洲精品9999 | 99精品国自产在线观看 | 亚洲色欲色欲www | 一区二区精品 | 欧美在线 | 羞羞免费网站 | 久久99蜜桃综合影院免费观看 | 中文字幕一区二区三区乱码在线 | www.婷婷| 一区二区精品 | 国产精品久久av | 亚洲天天| 观看av | 免费黄色成人 | 久久中文字幕一区 | 免费观看av网站 | 国产视频福利在线观看 | 91新视频 | 黄色片在线 | 日韩欧美二区 | 在线看av的网址 |