Git Product home page Git Product logo

Comments (4)

tomwanzek avatar tomwanzek commented on August 18, 2024 1

A few considerations to explain:

  • The intent was to access D3 idiomatically as a service which is instantiated as a singleton.
  • A primary concern was, where D3's event handling is used, the live link to the d3.event, if used, should not accidentally broken.
  • The service was written, before the bundle definitions for the standard D3 bundle could be published on DefinitelyTyped/@types.
  • The service is not an exact replica of the D3 standard bundle, e.g. d3-request is omitted in favour of using Angular for http.
  • The intent was to have something for rapid prototyping, rather than a perfectly tailored minimal d3 feature set for a specific project.

All in all, if you are mindful of the event handling in D3 vs Angular and the cross-module prototype extensions used in D3, you are able to directly import the required functionality.

It kind of depends on exactly what D3 features you use.

That, in a nutshell, was the main background. 😄

from d3-ng2-service.

tomwanzek avatar tomwanzek commented on August 18, 2024 1

@impankratov Thanks for the suggestion, I will consider an expanded "intended use" section.

from d3-ng2-service.

billdwhite avatar billdwhite commented on August 18, 2024

Ok, thanks for the explanation

from d3-ng2-service.

impankratov avatar impankratov commented on August 18, 2024

@tomwanzek maybe this description could be added to the readme file? I think that could help people to quickly and easily understand the purpose of this project.

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.