-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add shadow to line chart's tooltip #1768
base: main
Are you sure you want to change the base?
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:) |
hi:)
this PR resolves #1767
i've added 3 params to
LineTouchTooltipData
for 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
LineTouchTooltipData
from example image: