AAChartKit-Swift icon indicating copy to clipboard operation
AAChartKit-Swift copied to clipboard

AAPlotLinesElement可以支援拖曳Drag嗎?

Open CLWuAIP opened this issue 2 years ago • 6 comments

HighChart有支援,但我找不到.allowDragPlotLine()。

CLWuAIP avatar Sep 26 '23 07:09 CLWuAIP

HighChart有支援

有相关文档吗?

AAChartModel avatar Sep 26 '23 09:09 AAChartModel

補充: https://stackoverflow.com/questions/52834831/how-do-i-create-a-draggable-plot-line-in-highcharts https://jsfiddle.net/Lnj7ac42/

CLWuAIP avatar Sep 26 '23 09:09 CLWuAIP

这个示例的不太好弄, 需要额外添加依赖文件:

<script src="https://rawgithub.com/highcharts/draggable-points/master/draggable-points.js?1"></script>

AAChartModel avatar Sep 26 '23 10:09 AAChartModel

而且我粗略的看了一下依赖文件里面的实现, 应该是不支持移动端. 因为你可以看到, 它里面的事件操作似乎都是针对鼠标事件的.

AAChartModel avatar Sep 26 '23 10:09 AAChartModel

再請教: https://api.highcharts.com/highcharts/plotOptions.series.dragDrop 這支援plotline嗎?

CLWuAIP avatar Sep 27 '23 02:09 CLWuAIP

The draggable-points module allows points to be moved around or modified in the chart. In addition to the options mentioned under the dragDrop API structure, the module fires three events, point.dragStart, point.drag and point.drop.

看这个属性的注释, 和 plotline 应该是没什么关系.

AAChartModel avatar Sep 28 '23 01:09 AAChartModel