Skip to content
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

Linechart not displaying Chart when data is updated via Proivder listener #288

Closed
kdhanji87 opened this issue Apr 4, 2020 · 2 comments
Closed

Comments

@kdhanji87
Copy link

kdhanji87 commented Apr 4, 2020

plugin

the datasource for the linechart is uisng a provider that is listening for changes, i also have a Date filter that calls an api and gets the data for that date range and refreshes the data

what i am finding is when i refresh the data for a diffrent date range, i can see the data is being sent to the widget but the line chart is not rendering/rebuilt, if i switch back to the default date range the first loaded chart is displayed correctly.

example, month APRIL is inital Date Range that is built

image

when i change the Date Range to March,

image

the linechart dosnt update with the new data, i can see the data has has the list of updated FL Spots when the data range has been changed, but the widget is not redrawing the line

i saw that an #16 was suppose to resolve this issue but i maybe doing something wrong

@imaNNeo
Copy link
Owner

imaNNeo commented Apr 5, 2020

Hi @kdhanji87.
The best way and fastest way to fix this is a reproducible code.
Reproducible code is a code contains the main() function and anything needed to run independently and represents the bug,
your code is not a reproducible code based on my definition, and I can't read it line by line, because as you see there are more than 40 issues, that I don't have enough time to read the codes line by line.
please help me by providing me a reproducible code, that I copy-paste it to my main class and it runs independently.
Thanks for understanding!

@kdhanji87
Copy link
Author

Update,

managed to figure it out, turns out the issue was with the minX and MaxX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants