animation.startup setting is missing

Open Beginner friendly
#46 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
fsharp

Research direction

Start in Configuration.fs around line 8 and inspect the Animation configuration alongside duration and easing. Add support for the startup setting and its serialization behavior as shown in the issue, then verify that animation: {"startup": true} is accepted and emitted in chart options.

Written by the indexing model from the issue text.

Description

enhancement help wanted

Set animation: {"startup": true} - setting this in your options will cause your chart to start with series values drawn at the baseline, and animate out to their final state.

Added with:

Configuration.fs (line 8)

 type Animation() =
        
        let mutable durationField : int option = None
        let mutable easingField : string option = None
        let mutable startUpField : bool option = None
        
        member __.startup
            with get() = startUpField.Value
            and set(value) = startUpField <- Some value
             
        member __.duration
            with get() = durationField.Value
            and set(value) = durationField <- Some value

        member __.easing
            with get() = easingField.Value
            and set(value) = easingField <- Some value

        member __.ShouldSerializeduration() = not durationField.IsNone
        member __.ShouldSerializeeasing() = not easingField.IsNone
        member __.ShouldSerializestartup() = not startUpField.IsNone
Dominant language
F#
Stars
289
Forks
70
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fslaborg/XPlot

All issues in fslaborg/XPlot

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.