英文:
How to use icon from icon class for dot in fl_chart
问题
我正在使用fl_chart,并想要在点上使用Icon类的"Icons.favorite"。有没有办法实现这个?以下是我一直在使用的LineChart,我想将线两侧的蓝色点更改为Icon类的"Icons.favorite"。
LineChart(LineChartData(
lineBarsData: [
LineChartBarData(
spots: FlSpotDatas,
dotData: FlDotData()),
]
))
我觉得可以通过FlDotData()来实现,但是找不到相关的资料,希望能得到帮助。
英文:
I'm working on fl_chart and would like to use "Icons.favorite" from Icon class for dot.
Is there way to achieve this?
Below is LineChart that I have been working with and I would like to change blue dot on both edge of line to "Icons.favorite" from Icon class.
LineChart(LineChartData(
lineBarsData: [
LineChartBarData(
spots: FlSpotDatas,
dotData: FlDotData()),
])
I feel like it can be done by FlDotData() but could not find any mategial about and I hope to get help.
答案1
得分: 0
如评论中所述,这是不可能的。
英文:
As it said in the comment it was not possible.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论