Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
11.12k stars 579 forks source link

Dimension fields limited to 2 per axis #424

Open jschmudd opened 7 months ago

jschmudd commented 7 months ago

Are dimension fields intended to be limited to a max of 2 per axis, or in a table's case 2 in rows or 2 in columns? Because it won't let me add more than 2 into each without removing one of the already existing ones. In older versions, like all the way back to 1.x seems to allow it though. It is just something that would be nice for some of my use cases and while I could convert the fields to measures I guess, that isn't what they really are and is also tedious.

ObservedObserver commented 7 months ago

For charts, there is a limit for 2 dimensions in each axis direction due to the chart ability to render nest facet. But I think the limitation for table is not necessary.

Here my init thought about the plan in 0.4.6 (next release, available before 2024/2/9):

  1. We will remove the limit of dimensions for table in axis
  2. For charts, when add a new dimension where there are already two existed, it will behave like a queue where the first dimension will be removed the the new dimension will be appended as the last one.

For chart to support more than two dimension in one axis, it requires some large fix to the upstream chart library, vega-lite. We might try to fix it this year, but the time schedue is not written yet.

jschmudd commented 7 months ago

Cool, thank you! It is mostly in using the table visual where I find myself wanting more than 2 dimension fields.