-
Notifications
You must be signed in to change notification settings - Fork 26
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
[OTHER] Using chart_config #1267
Comments
A complete example: import pandas as pd
import taipy as tp
from taipy.gui import Gui
from taipy.gui import builder as tgb
df = pd.DataFrame(
{"A": [1,2,3], "B": [4,5,6], "C": [7,8,9]}
)
csv_data_node_config = tp.Config.configure_csv_data_node(
id="csv_data_node", scope=tp.Scope.GLOBAL
)
csv_data_node = tp.create_global_data_node(csv_data_node_config)
csv_data_node.write(df)
with tgb.Page() as visualization:
tgb.text("## 📊 Data", mode="markdown")
tgb.data_node("{csv_data_node}", show_owner=True, chart_config={"type": "scatter"})
gui = Gui(page=visualization)
if __name__ == "__main__":
gui.run(port=4999) Clarification of what I want: When I click on the chart view, I want to visualize the data as a different plot (i.e. scatter - markers). Ideally while still being able to choose X and Y, but not necessarily. |
@JosuaCarl Indeed the |
the right property is |
Does this mean there is no general option? So I would have to enter something like: {"my_data_node":
{"type": "scatter"}
} Because this also does nothing. |
@JosuaCarl: the property name is wrong in the doc (should be In your case you may want to try setting the Thx |
@JosuaCarl In your case, the use case you came up with is you want chart that displays the the data node data as markers only.
then use it when building your page:
This should accomplish what you wanted. |
What would you like to share or ask?
How can I use
chart_config
to change the plots in a data_node ? I would like to be able to do scatter plots with only markers, no lines. Is there a way to do this ?Example:
I don't get how to structure the dictionary, as referenced here: https://docs.taipy.io/en/latest/refmans/reference/pkg_taipy/pkg_gui/pkg_builder/data_node/
Code of Conduct
The text was updated successfully, but these errors were encountered: