使用`fl_chart`中的`icon`类来表示点的图标。

huangapple go评论54阅读模式
英文:

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()),
  ]
))

使用`fl_chart`中的`icon`类来表示点的图标。

我觉得可以通过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()),
])

使用`fl_chart`中的`icon`类来表示点的图标。

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.

huangapple
  • 本文由 发表于 2023年6月27日 17:47:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76563621.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定