-
Notifications
You must be signed in to change notification settings - Fork 142
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
Make a grouped charts #191
Comments
Hi @vmisusu and thanks for the question. If I understand you correctly, you need to create custom chart (adding some average values on the bar chart) with filtered data (data filtered by selected vm.Filter values). You can achieve it utilising I also created additional example for you where I tried to configure something similar you probably need:
I hope the example and documentation will help you to find the answer. |
Thank you very much, it works. Also, can you please tell me if Vizro supports Polars? |
Glad to see it works. 🚀
I guess you're asking for plotly polar charts integration with Vizro. By using "custom charts" Vizro feature with Here is an example that shows how to achieve this. (it's pretty similar like you used to built MEAN of prices for every Year).
More about custom charts in Vizro you can find on the link. |
Hi, thank you, but im talking about Polars library. the speed would be several times faster if Vizro used Polars https://h2oai.github.io/db-benchmark/. also i suggest to use dash ag grid instead of datatable |
Hi @vmisusu,
Thanks for the awesome suggestion, we really appreciate it. 🤩
We are currently working on supporting ag-grid natively in the Vizro.
You can do it simply by decorating your function with the |
Ty Petar, please consider supporting polars, I think it is necessary, given that the whole point of vizro is working with a dataframe in memory. Currently vizro cannot determine polars column names (detects them as [0,1,2,3,4...]) |
Question
Hi, how can i built grouped charts?
In example, i want to built a bar chart with not pure Price, i want to do it with Sum of Price or Mean of Price for this years which places at x-axis.
But in Selector i want to filter pure Dataframe for a prices in example (and after built grouped chart)
Code/Examples
df = df[["brand", "year", "price"]]
components=[
vm.Graph(
id="win_time_graph",
figure=px.bar(
data_frame = df,
x="year",
y="price",
color="brand",
),
),
---> i want to built MEAN of prices for every Year
Other information
No response
vizro version
last
Python version
3.11
OS
win 10
Code of Conduct
The text was updated successfully, but these errors were encountered: