Skip to content

feature: add dodge transform #16

@gka

Description

@gka

Is your feature request related to a problem? Please describe.
see Dodge transform in Observable Plot.

Describe the solution you'd like
The dodge transform needs to be applied after scaling, so it can't be passed to the marks like other transforms. Instead we could allow users to pass a dodgeX or dodgeY property to all applicable marks, e.g.:

<!-- just activate dodgeY -->
<DotX data={cars} x="weight (lb)" fill dodgeY />
<!-- or pass anchor options: -->
<DotX data={cars} x="weight (lb)" fill dodgeY={{ anchor: 'bottom', padding: 2 }} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy