Add shadow to line chart's tooltip#1768
Conversation
|
Would be great if this could be added to the barchart tooltip as well! |
|
Hi, thanks for your details description. Can you please use the same naming and method of drawing shadow, this way we keep the consistency in the project. Look at the below code: fl_chart/lib/src/chart/line_chart/line_chart_data.dart Lines 359 to 360 in 0e75570 fl_chart/lib/src/chart/line_chart/line_chart_painter.dart Lines 911 to 938 in 0e75570 |
|
Hi, can you please take a look at my comment above? |
|
hi @imaNNeo , sorry, i got caught up in other projects. i'll try to fix it this week:) |
ede5b6b to
bf8aa1d
Compare
|
hi @imaNNeo, finally got some time to fix this.. sorry for the delay please check if it is all good now:) |
|
Very nice! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1768 +/- ##
==========================================
+ Coverage 92.51% 92.53% +0.02%
==========================================
Files 46 46
Lines 3341 3351 +10
==========================================
+ Hits 3091 3101 +10
Misses 250 250
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
sure, i'll try to finish it this week:) |
|
Any updates? |
bf8aa1d to
d8a70ff
Compare
|
hi, thanks for reminder @xFlaviews:) @imaNNeo i've added similar shadow feature to please check if everything is ok and lets finally merge this!:) |
Thank you @Sosssen ! |
|
@imaNNeo any updates? |
|
any updates? |
|
Thanks so much!
I also remembered that we also have our brand new CandlestickChart that has the tooltip feature, so it would be nice if you also add this feature there. (but it is not crucial as I forgot to mention it earlier xD) |
|
Hey, can you please update your branch and reply to my last comment? |
|
Not really sure how it works, but I updated the original PR with at least your previous comment. I have not messed with the CandlestickChart painter for the tooltip. Mainly created this for my own interest, but would be nice to see @Sosssen work merged :) https://github.com/thomasaldershof/fl_chart/tree/update-pr-1768 |




hi:)
this PR resolves #1767
i've added 3 params to
LineTouchTooltipDatafor tooltip shadow:shadowColor- color of the shadowshadowBlur- sigma value of mask filter blur (how much will shadow be blurred)shadowOffset- offset of the shadow (related to tooltip)please check the image below to see example of changes:)
and the code code of
LineTouchTooltipDatafrom example image: