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

Perspective config in Panel #3801

Closed
jyotirmoyjena opened this issue Sep 1, 2022 · 2 comments · Fixed by #3814
Closed

Perspective config in Panel #3801

jyotirmoyjena opened this issue Sep 1, 2022 · 2 comments · Fixed by #3814
Labels
type: enhancement Minor feature or improvement to an existing feature

Comments

@jyotirmoyjena
Copy link

Hello,

Thank you for building this project. I'm new here and am experimenting with the finos perspective framework within panel. I find that it is not possible to apply columns configuration when the perspective viewer is loaded. e.g. from the perspective config.json, where I'd like to add certain gradient and coloring to certain columns.

plugin_config={'columns': {'X': {'gradient': 0.7836544570728833, 'neg_color': '#f07160', 'number_color_mode': 'gradient', 'pos_color': '#7dc3f0'}, 'Y': {'gradient': 8448, 'neg_color': '#ff9485', 'number_color_mode': 'gradient', 'pos_color': '#607785'}}}
Ideally the plugin config should be exposed as a param so one could set it while rendering the panel for the first time. Please let me know what you think, or if its already possible to do something like this with the current state of the Perspective API I would appreciate it if you could share some pointers.

Many Thanks
JJ

@philippjfr philippjfr added the type: enhancement Minor feature or improvement to an existing feature label Sep 1, 2022
@jyotirmoyjena
Copy link
Author

Thanks for adding this as a requirement, much appreciated. If you are planning on exposing parts of the plugin config separately (e.g. selectable/editable etc.) I would recommend adding number formatting also to the mix. e.g.

"plugin_config":{"columns":{"X":{"fixed":6}},"editable":false,"scroll_lock":true}

Thanks
JJ

@jyotirmoyjena
Copy link
Author

jyotirmoyjena commented Sep 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Minor feature or improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants