fluttercandies / flutter-interactive-chart

A candlestick chart that supports pinch-to-zoom and panning.
https://pub.dev/packages/interactive_chart
MIT License
209 stars 66 forks source link

how to adding overlay percent #15

Open willneedme opened 2 years ago

willneedme commented 2 years ago
overlayInfo: (candle) => {
  "💎": "🤚    ",
  "Hi": "${candle.high?.toStringAsFixed(2)}",
  "Lo": "${candle.low?.toStringAsFixed(2)}",
  "Percent" : ${candle.close! / candle.beforeClose!}
},

when we drawing percent overlap required before close how to draw it? is it possible?

if impossible, customizing the overlay callback onTap ??