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

Animations in FilledLineChart are not aligned!!!! #238

Open
danaabhi opened this issue Jun 17, 2023 · 0 comments
Open

Animations in FilledLineChart are not aligned!!!! #238

danaabhi opened this issue Jun 17, 2023 · 0 comments

Comments

@danaabhi
Copy link

FilledLineChart(chartData: segmentationSelection == .week ? weekData : todayData)

                .filledTopLine(chartData: segmentationSelection == .week ? weekData : todayData,
                               lineColour: ColourStyle(colour: .orange),
                               
                               strokeStyle: StrokeStyle(lineWidth: 3))
            
                .xAxisLabels(chartData: segmentationSelection == .week ? weekData : todayData)
                .id(segmentationSelection == .week ? weekData.id : todayData.id)
                .frame(minWidth: 150, maxWidth: 900, minHeight: 150, idealHeight: 300, maxHeight: 300, alignment: .center)

we are having the following code in which the animation for gradient and line is not matching, whenever we start the app, the gradient appears first then slowly the line comes from bottom to top.

Also is there a way to make the animation start from center

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

1 participant