Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

properties refresh (#897) #958

Merged
merged 3 commits into from
Oct 9, 2023
Merged

Conversation

FredLL-Avaiga
Copy link
Member

@FredLL-Avaiga FredLL-Avaiga commented Oct 9, 2023

Addresses #897.

from taipy.gui import Gui, Markdown
import pandas as pd

x_range = range(-10, 11)
df = pd.DataFrame(
    {
        "X": x_range,
        "Y": [x * x for x in x_range],
    }
)


def create_chart_properties(selected_type):
    properties = {
        "x": "X",
        "y": "Y",
        "type": selected_type,
        "rebuild": True
    }
    return properties


types = ["bar", "line"]
selected_type = types[0]

md = Markdown(
    """
<|{df}|chart|properties={create_chart_properties(selected_type)}|>

<|{selected_type}|toggle|lov={types}|>
"""
)

Gui(md).run()

@FredLL-Avaiga FredLL-Avaiga added 🟥 Priority: Critical Must be fixed ASAP Gui: Back-End Related to the back-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. labels Oct 9, 2023
@FredLL-Avaiga FredLL-Avaiga self-assigned this Oct 9, 2023
@FredLL-Avaiga FredLL-Avaiga added the 📝Release Notes Impacts the Release Notes label Oct 9, 2023
@FredLL-Avaiga FredLL-Avaiga changed the title #897 properties refresh properties refresh (#897) Oct 9, 2023
Copy link
Member

@FabienLelaquais FabienLelaquais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔Whatever works

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

Coverage report for gui

St.
Category Percentage Covered / Total
🟢 Statements 80.46% 2220/2759
🟡 Branches 62.2% 1338/2151
🟡 Functions 75% 387/516
🟢 Lines 80.88% 2060/2547

Test suite run success

317 tests passing in 35 suites.

Report generated by 🧪jest coverage report action from e9f62f3

@github-actions
Copy link

github-actions bot commented Oct 9, 2023

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
5178 4412 85% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/taipy/gui/_renderers/builder.py 83% 🟢
TOTAL 83% 🟢

updated for commit: e9f62f3 by action🐍

@FredLL-Avaiga FredLL-Avaiga merged commit 4d51245 into develop Oct 9, 2023
@FredLL-Avaiga FredLL-Avaiga deleted the bug/#897-properties-refresh branch October 9, 2023 08:15
@FabienLelaquais FabienLelaquais removed the 📝Release Notes Impacts the Release Notes label Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Gui: Back-End Related to the back-end side of Taipy GUI. 💥Malfunction Addresses an identified problem. 🟥 Priority: Critical Must be fixed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants