Skip to content
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

Document how to set initial spec #419

Open
MarcSkovMadsen opened this issue Oct 31, 2024 · 1 comment
Open

Document how to set initial spec #419

MarcSkovMadsen opened this issue Oct 31, 2024 · 1 comment

Comments

@MarcSkovMadsen
Copy link

MarcSkovMadsen commented Oct 31, 2024

I would like to set the initial spec. The docs says

image

image

I do not understand how to use this and cannot find any examples. Please provide.

I would like to be able to use it to finalize the PR panel-extensions/panel-graphic-walker#27.

image

@MarcSkovMadsen
Copy link
Author

MarcSkovMadsen commented Nov 1, 2024

Solution

My spec was from exporting the current chart. It was a dict in Python. I have to provide it as an Array in React:

<GraphicWalker
...
chart={[spec]}
/>

This was not very clear for two reasons

What helped me was chart usage in https://graphic-walker.kanaries.net/examples/Graphic_Walker_In_a_Modal and chatGPT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant