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

PlotlyChart BUG #4928

Open
1 task done
ai-drive-byte opened this issue Feb 20, 2025 · 0 comments
Open
1 task done

PlotlyChart BUG #4928

ai-drive-byte opened this issue Feb 20, 2025 · 0 comments

Comments

@ai-drive-byte
Copy link

Duplicate Check

Describe the bug

PlotlyChart not working even a simple example from official doc https://flet.dev/docs/controls/plotlychart
im on windows 11 using anaconda i try many flet version 0.26 0.25 0.1.63 and plotly==5.24.1 and 6 and also test with python version 3.9 3.12 3.13 nothing work
always same problem see image
Image

Code sample

Code
import plotly.graph_objects as go

import flet as ft
from flet.plotly_chart import PlotlyChart

def main(page: ft.Page):

    labels = ["Oxygen", "Hydrogen", "Carbon_Dioxide", "Nitrogen"]
    values = [4500, 2500, 1053, 500]

    fig = go.Figure(data=[go.Pie(labels=labels, values=values)])

    page.add(PlotlyChart(fig, expand=True))

ft.app(main)

To reproduce

install flet and plotly
run the example

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

11

Flet version

0.26.0

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

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