请教highcharts如何实现拖动点带动线拖动的问题

程序园 发布于 2013/08/22 15:39
阅读 1K+
收藏 0
 拖动一个点修改该点的值,同时,需要将这条线重新绘制
加载中
0
d
dreamyao5

 plotOptions: {
             line:{
              dateGrouping:{enbaled:false}              
             },
             series: {
                    cursor: 'pointer',
                    allowPointSelect: true,
                    events:{
                legendItemClick: lengedItemFun
               },
                    point: {
                        events: { drag: dragFun, //拖
                            drop: dropFun //放
                        }
                    },
                    stickyTracking: false
                }
            },
           series: ${templist}//数据集合
          });

依赖Highcharts 文件draggable-points.js

 

返回顶部
顶部