-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Handle Plotly animation #1773
Comments
@FlorianJacta to clarify, we're adding a gui element that allows users to integrate plotly animations, right? |
@ScalarJerk I think it could be taken in charge by the chart visual element. What do you think? @FabienLelaquais @FredLL-Avaiga |
Hey! @ScalarJerk and @FlorianJacta |
@ScalarJerk Was your plan to work on this issue? |
@ScalarJerk @FlorianJacta any updates?? |
Yes, I think you can start working on it. I am assigning you this issue @rakshitmalik136 ! Thank you |
Just to Clarify, the code that i need to work on, should reside in taipy\frontend\taipy-gui\public\stylekit\elements folder or somewhere else? taipy\frontend\taipy-gui.../chart.tsx more |
Hey @rakshitmalik136 ! Are you able to start the server i.e, the gui server for the front-end, if yes can you help me i am unable to start the server. I have been stuck in this problem for 4 days . Please contact me on the discord |
You can look at simple example in doc/gui/examples |
The chart component is located at taipy/frontend/taipy-gui/.../chart.tsx |
|
Handle Plotly animation Avaiga#1773 @quest-bot loot Avaiga#1773
@quest-bot loot #1773 |
Check the docs for more info. |
🧚 @rakshitmalik136 has submitted PR #2019 and is claiming the loot. Keep up the pace, or you'll be left in the shadows. Questions? Check out the docs. |
Hey, I'm interested in helping with this issue. Is it possible? Thanks |
@quest-bot embark |
@mzf11125 has embarked on their Quest. 🗡
This is not an assignment to the issue. Please check the repo’s contribution guidelines before submitting a PR. Questions? Check out the docs. |
This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines. |
This issue has been unassigned automatically because it has been marked as "🥶Waiting for contributor" for more than 14 days with no activity. |
This issue has been labelled as "🥶Waiting for contributor" because it has been inactive for more than 14 days. If you would like to continue working on this issue, please add another comment or create a PR that links to this issue. If a PR has already been created which refers to this issue, then you should explicitly mention this issue in the relevant PR. Otherwise, you will be unassigned in 14 days. For more information please refer to the contributing guidelines. |
This issue has been unassigned automatically because it has been marked as "🥶Waiting for contributor" for more than 14 days with no activity. |
Description
The goal would be to handle Plotly animation inside Taipy or find a workaround for it.
This was asked by a user.
Technical proposal 1 [DOES NOT WORK]
We seem to cover basic use cases with the addition of an
animation
property that would describe if and how animation would take place.This property must indicate which dataset columns are animated, and animation properties such as the transition easing and speed.
Use case: I want to change which of the dataset column is represented, animating from the initial one to the next.
Data definition is:
Animated column value:
y_values="y1"
Chart definition is:
Meaning:
We are initially showing 'y1' on the 'y' axis.
If 'y' changes to a new column, animate the chart with the indicated parameters.
Now I set 'y_values' to "y2", the chart can animate from the values in 'y1' to the values in 'y2'.
Why it does not work
The problem is
y={y_values}
that presumes thaty
is dynamic, which it is not.Although this would be the panacea, it is not how Taipy GUI charts work, and it would be a mess to change that.
Technical proposal 2
Data definition is:
We will add an
animation_data
dynamic property that must be a dataset with only the columns that are animated:When the chart component has this property set, it loads it all, and receives all the columns that are impacted.
Because the "y" columns appears in both datasets, the 'from' and 'to' frames can be built from the two column values.
And animation is performed.
When a new
animation_data
is sent (with new data, in the same column(s)), we move the 'to' frame to the 'from' frame and recompute the new 'to' frame from the values in theanimation_data
column(s).From the user stand point, all that needs to be done is update the
animation_data
content. The animation is carried immediately.There should also be a
animation_config
(oranimation
for short) dictionary (static) property that can tune the animation parameters such as speed or type.Acceptance Criteria
Code of Conduct
The text was updated successfully, but these errors were encountered: