Skip to content

Cannot plot multiple graphs using plotly in for loop #706

@Harshal12355

Description

@Harshal12355

Is your feature request related to a problem? Please describe.

Yes. When trying to generate multiple Plotly graphs in a loop—e.g., comparing one feature against a list of others—you’re required to manually assign a unique id to each graph. This requirement isn’t mentioned in the documentation, and without it, the function doesn’t work as expected. This makes it difficult to automate plotting in batch.

Describe the solution you'd like

The function should automatically assign unique ids (e.g., using uuid or hash values) when generating multiple plots. Alternatively, the documentation should clearly state that a unique id must be provided when plotting dynamically.

Describe alternatives you've considered

I’ve worked around this by generating uuids manually for each graph (enumerating through the list), but it’s not ideal for workflows with many plots. Especially if you do this for multiple plots, they are bound conflict at different parts of the code base.

Additional context

This issue significantly limits the usability of the function for dynamic or large-scale plotting. Automating id assignment or improving the docs would greatly improve the developer experience.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions