October 31, 2022

Missing Graphics

Welcome to Taipy Forums Feature requests Missing Graphics

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #236853
    GSpelvinGSpelvin
    Participant

    Just getting started with Taipy and really like the way I’ve been able to quickly set up a nice dashboard for my data project. I’d like to add a few other graphics, including a heatmap, a radar chart. How can I get access to some graphics that don’t seem to be available.

    Thanks
    G

    #236854
    Florian JactaFlorian Jacta
    Keymaster

    Hi,

    Radar chart/polar chart are already in the process of being accessible through Taipy. The next release will have them.

    Heatmaps can already be used within Taipy. Here are two examples:

    ——————————-
    from taipy.gui import Gui

    data = {
    “z”: [[1, 20, 30], [20, 1, 60], [30, 60, 1]],
    }

    md = “””
    ## Basic Heatmap

    <|{data}|chart|z=z|type=heatmap|>

    “””

    Gui(md).run()

    ——————————-

    from taipy.gui import Gui
    import pandas as pd

    data = [
    pd.DataFrame({
    “z”: [[1, None, 30, 50, 1], [20, 1, 60, 80, 30], [30, 60, 1, -10, 20]]}),
    pd.DataFrame({
    “x”: [‘Monday’, ‘Tuesday’, ‘Wednesday’, ‘Thursday’, ‘Friday’]}),
    pd.DataFrame({
    “y”: [‘Morning’, ‘Afternoon’, ‘Evening’]}),
    ]
    options = {
    “hoverongaps”: False
    }
    md = “””
    ## Heatmap with Categorical Axis Labels

    <|{data}|chart|x=1/x|y=2/y|z=0/z|type=heatmap|>

    “””

    Gui(md).run()

    ——————————-

    Please let me know if you have any other questions.
    Regards,
    Florian

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.