Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Key x/y axis ticks to their raw value instead of their index #231

Closed
Labels
enhancementNew feature or request
@bothness

Description

@bothness

Is your feature request related to a problem? Please describe.
I would like to be able to apply CSS transitions to charts, including their x and y axis ticks. This requires them to be keyed to their values rather than their index in the ticks array.

Describe the solution you'd like
This change requires modification to one line of code in each of the x and y axis components. Seethis PR.

Describe alternatives you've considered
It's possible to animate the charts by tweening the data array and domain. However, this change should have no negative impact on the performance of the library, and simply allows for greater flexibility for its users.

Additional context
This demo does not currently function correctly. The ticks animate, but it is dumb in terms of their values. I have tested the same demo with the proposed change to the library and it works perfectly:
https://svelte.dev/playground/232abb5544f14b8fbbcb1de777134399?version=5.40.1

Metadata

Metadata

Assignees

No one assigned

    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


      [8]ページ先頭

      ©2009-2025 Movatter.jp