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

allow passing layout parameters at the layer level #13

Open
daslu opened this issue Dec 26, 2024 · 2 comments
Open

allow passing layout parameters at the layer level #13

daslu opened this issue Dec 26, 2024 · 2 comments

Comments

@daslu
Copy link
Member

daslu commented Dec 26, 2024

E.g., instead of having to write:

(-> {:x (range 9)
     :y (repeatedly 9 rand)
     :index [:A :B :A :B :A :B :A :B :A]}
    tc/dataset
    (plotly/base {:=width 1366})
    (plotly/layer-point {:=x :x
                         :=y :y
                         :=color :index}))

it would be nice to be able to also write:

(-> {:x (range 9)
     :y (repeatedly 9 rand)
     :index [:A :B :A :B :A :B :A :B :A]}
    tc/dataset
    (plotly/layer-point {:=x :x
                         :=y :y
                         :=color :index
                         :=width 1366}))

and still have the :=width affect the resulting layour.

@daslu
Copy link
Member Author

daslu commented Dec 26, 2024

Zulip discussion:
#tableplot-dev > plotly + clay --> set width?

@daslu
Copy link
Member Author

daslu commented Dec 26, 2024

Thanks, @harold.

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