-
Notifications
You must be signed in to change notification settings - Fork 327
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
Avoid having to specify pack=True when using data() for components #441
Comments
I can understand the confusion - this needs to be made clearer in the docs. [1] is a card. Cards are backed by data buffers, which means they support incremental updates to individual rows or values in their data. [2] is a component. It's not backed by data buffers, which means if you need to update a plot's data, you cannot use the simplified data-buffer syntax to edit individual values in the data. Instead, you'll need to do something like The We should probably make [2] work like [1] (without having to provide |
…tes are loaded due to Go arbitrary map iteration order. #441
Question and Background
It seems to the developer that 1.
ui.form_card
withui.visualization
would be the same as 2.ui.plot_card
. This is not explicitly stated in the docs, but from looking at examples it seems like 1. is the only way to replicate 2. in a card with other items, so the user assumes you could copy-past your plot and data code from one and put it in the other. This is not the case when using a dataframe, and addition optionpack=True
is required in 1.Reproducible Example
Notice the
pack=True
ofscatter_viz_form_card
which is not required forscatter_plot_card
. If you do not include it you get this error:Actual Question
You can add
pack=True
toscatter_plot_card
and nothing changes, but I am wondering why it's not required. Is this user confusion, a possible bug inui.visualization
, or missing docs?The text was updated successfully, but these errors were encountered: