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

added visible data api #487

Closed
wants to merge 1 commit into from
Closed

Conversation

mawsyh
Copy link
Contributor

@mawsyh mawsyh commented Sep 27, 2023

exposed the API to get data of the visible part of the chart

@liihuu
Copy link
Member

liihuu commented Sep 27, 2023

getVisibleRange()?

@mawsyh
Copy link
Contributor Author

mawsyh commented Sep 28, 2023

Correct if I'm wrong but visibleRange returns a single object with from and to values, but i needed the array of visible data to do some mathematical calculations on them

@liihuu
Copy link
Member

liihuu commented Sep 28, 2023

From and to are KLineData array index, only need to get the current data through getDataList.

@mawsyh
Copy link
Contributor Author

mawsyh commented Sep 30, 2023

Thanks but in some cases I have over 10000 objects in my data, fetching them all and slicing it doesn't seem the best approach to me.

@liihuu liihuu closed this Jun 5, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants