Giter Club home page Giter Club logo

Comments (3)

emeeks avatar emeeks commented on May 21, 2024

You can use the defined attribute to set rules for when a value means a gap. So in your case you should be able to set:
defined={d => d.yourValue !== null}
If that doesn't work let me know. That will work for any gaps in the data.
Love the sketchy rendering in looks so hand-drawn.

from semiotic.

bengarvey avatar bengarvey commented on May 21, 2024

💥
screen shot 2017-09-16 at 4 02 11 pm

That worked perfecly, thanks.

from semiotic.

bengarvey avatar bengarvey commented on May 21, 2024

@emeeks Upgraded to 1.16.3 and I think this is broken again.

With this code:
defined={d => d.yourValue !== null}

It seems to ignore the nulls completely instead of skipping them, making it span the data across the whole chart even where it shouldn't be. I fixed this by explicitly setting the xExtent, which solved the problem, but I figured I'd let you know this behavior changed. Feel free to close if this is intentional or not a big issue.

The problem explained visually:
With no xExtent set, but null values for earlier datapoints.
screen shot 2019-01-06 at 10 08 59 pm

With explicit xExtent set, correctly not plotting the nulls.
screen shot 2019-01-06 at 10 09 10 pm

from semiotic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.