imaNNeo/fl_chart

can getTitlesWidget function transmit x's index?

开放

#1,170 创建于 2022年10月14日

 (5 条评论) (0 个反应) (0 位负责人)Dart (1,964 个派生)batch import
Fundamentalenhancementgood first issue

仓库指标

星标
 (7,513 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

AxisTitles( sideTitles: SideTitles(showTitles: true, getTitlesWidget: (double value, TitleMeta meta) { return SideTitleWidget( axisSide: meta.axisSide, child: Text(value.toString()), ); }), )

Hello, in above code, the getTitlesWidget function transmit x's value. Can it transmit x's index in the future? I have a list consist of map. The map has value and title, I want give the value to x, and give the title to getTitlesWidget. If x's index can be transmitted to getTitlesWidget function, I can use it to achieve title from my list directly. Thank you very much!

贡献者指南