亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

FusionMaps XT - VueJs - 不工作事件連接器點擊

FusionMaps XT - VueJs - 不工作事件連接器點擊

慕森王 2021-09-17 16:33:42
我有一張用 VueJS 處理的地圖,但我遇到了事件 connectorClick 的問題。在下面的示例中,當單擊連接線時,警報不起作用。Vue.use(VueFusionCharts, FusionCharts);let grphMap = new Vue ({  el: '#app-vue',  data: {      type: "maps/romania",      width: "800",      height: "600",      dataFormat: "json",      dataSource: {        'chart': {          "theme":                "fusion",          "nullEntityColor":      "#E5E5E9",          "entityFillHoverColor": "#99ccff",          "showLabels":           '1',          "showEntityHoverEffect": "1",          "showtooltip":          "1",          "connectorColor":       "#0CB2B0",          "connectorHoverColor": "#000000",          "connectorthickness":   "3",          "markerfontsize":       "18",          "markerfontcolor":      "#0a0a0a",      "numbersuffix":         "%",          "entityFillColor":      "#ff0000",          "markerBgColor":        "#FF0000",          "markerRadius":         "12",      },        "colorrange": {          "gradient": "0",      },        "data": [          {            id: '10',            color: "#74CCEB",          }      ],        "markers": {          "shapes": [              {               "id": "myCustomShape",               "type": "circle",               "fillcolor": "#f8bd19",               "showborder": "0"              }          ],          "items": [              {                shapeid: "myCustomShape",                id: "10",                x: "295.5",                y: "283.5",              },              {                shapeid: "myCustomShape",                id: "11",                x: "323.9",                y: "226.6",              }              }          ]       }      },https://jsfiddle.net/Hexman/5e61pu3r/25我找到了一個功能示例,但它不在 VueJs http://jsfiddle.net/fusioncharts/t226vxnp/不要把我錯在哪里的馬鞍給我?
查看完整描述

1 回答

?
侃侃無極

TA貢獻2051條經驗 獲得超10個贊

似乎您忘記在您fusioncharts在組件數據中定義的模板中綁定事件對象。請參考以下模板代碼:


<fusioncharts

  :type="type"

  :width="width"

  :height="height"

  :dataFormat="dataFormat"

  :dataSource="dataSource"

  :events="events" // Bind your events object

></fusioncharts>


查看完整回答
反對 回復 2021-09-17
  • 1 回答
  • 0 關注
  • 164 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號