Git Product home page Git Product logo

Comments (1)

tomwanzek avatar tomwanzek commented on July 18, 2024

This does not appear to be an issue with the d3-ng2-service.

The TS definitions governing csvParse(...) have two signatures, one of which allows for a generic to control the data structure of a parsed line.

Similarly the TS definitions for d3.stack() have several signatures supporting generics to control the Datum type and Key type.

Without using the generics the defaults are assigned, which in your case seems to create the type mismatch.

So please, review/define the data types for the generics when you are parsing and then passing into stack and ensure their alignment.

You can have a peak at the definition test files d3-dsv and d3-shape for some examples of how the generics are used. Note that the examples are a bit artificial, as they are only shape tests, but they are still a good reference point.

As this is not an issue related to this service, I am going to close it here. If the above info did not help to get you on the way to resolving your question, please:

  • Use stackoverflow for the question,
  • Open an issue on DefinitelyTyped, if you find that any of the above definitions are too strict/erroneous and need rewriting.

Thanks for understanding. T 😄

from d3-ng2-service.

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.