Closed FlorianJacta closed 7 months ago
In 2.3.1, it now has a bizarre behavior where the zoom doesn't correspond to what should be zoomed.
With my testing on the develop branch, it is working as expected. You can re-open it if the issue still occurs.
The zoom with Decimator is still not working in the develop branch for 3.1. @dinhlongviolin1
I will have a look at it again. I will let you know how that goes
Hi FJ. I just debugged with the team and everything is working as it should. This might be the case of usage of the algorithm. you can try to use the threshold
parameter with then MinMaxDecimator instance decimator_instance = MinMaxDecimator(n_out=1_000, zoom=True, threshold=5_000)
. In this case, the decimator function will only be applied if the data point of the zoom area is above 5000, giving you a realistic view of the area.
It is not working as expected.
In 3.1, after my horizontal and vertical zoom, the points are not repopulated as it should be.
Try this code:
import yfinance as yf
from taipy.gui import Gui
from taipy.gui.data.decimator import MinMaxDecimator, RDP, LTTB
df_AAPL = yf.Ticker("AAPL").history(interval="1d", period = "100Y")
df_AAPL["DATE"] = df_AAPL.index.astype('int64').astype(float)
n_out = 500
decimator_instance = MinMaxDecimator(n_out=n_out)
decimate_data_count = len(df_AAPL)
page = """
# Decimator
From a data length of <|{len(df_AAPL)}|> to <|{n_out}|>
## With decimator
<|{df_AAPL}|chart|x=DATE|y=Open|decimator=decimator_instance|>
"""
gui = Gui(page)
gui.run(port=5026, title="Decimator")
Try to zoom here:
This is what you get:
Which is not correct, it should be the second image below. You can obtain this by not horizontally or vertically zooming in the chart but by zooming when the zoom is a box like this:
The correct zoom where points are repopulated:
It hope it is cleared here.
Hi FJ, I did check with the yfinance demo on taipy 3.1. It works very well on my machine and the points are updated accordingly to your last image on that zoom area.
works for me too in 3.2
you mean 3.1 right @FredLL-Avaiga :D
you mean 3.1 right @FredLL-Avaiga :D
no :-) I tested with the develop branch
This issue has been fixed. One caveat/feature that I have discussed with @FlorianJacta is zooming only vertically on line charts will give you the same result as not zooming vertically. This is due to the fact that line charts behaves different from scatter charts for example and the order of the points are very important. You might misrepresent a line if you remove a point entirely without context.
Description The chart does not reapply decimation or have issue zooming in the chart. It is not possible to zoom in one way, and the other zoom will not repopulate the chart.
How to reproduce
It is not possible to zoom in one way and the other will not repopulate the chart.
This is the expected result:
Expected behavior The chart should be repopulated when the user zoom vertically or horizontally on the chart.
Runtime environment Taipy GUI: develop for 3.1