Highcharts Sankey可拖动节点

时间:2020-11-07 16:22:18

标签: highcharts draggable sankey-diagram

我一直在尝试创建具有可拖动节点的HighCharts sankey图。

在文档中应该可以做到这一点,但是我无法使其正常工作。

首先有可能做到这一点,如何实现呢?有人可以分享“小提琴”吗?

1 个答案:

答案 0 :(得分:0)

不幸的是,无法将device模块与sankey系列一起使用。如您所见,sankey API:https://api.highcharts.com/highcharts/series.sankey中没有 String selectedOccasion; @override Widget build(BuildContext context) { final collectionProvider = Provider.of<CollectionProvider>(context).allOccasions; return Scaffold( appBar: AppBar( backgroundColor: Colors.deepPurpleAccent, title: Text('Viewer'), actions: [ Stack( children: [ IconButton( icon: Icon(Icons.add), onPressed: () { showDialog( context: context, builder: (context) { return AlertDialog( title: Text("Add to collection"), content: DropdownButton<String>( hint: Text('Select Occasion'), value: selectedOccasion, items: collectionProvider.map((String value) { return new DropdownMenuItem<String>( value: value, child: new Text(value), ); }).toList(), onChanged: (String newValue) { setState(() { selectedOccasion = newValue; }); },), ); }); }) ], ) ], ), body: Container(child: Text('Body') ); } 属性,例如列系列:https://api.highcharts.com/highcharts/series.column.dragDrop

中的示例

您可以在此处建议新功能请求:https://github.com/highcharts/highcharts/issues/new/choose