Coder Social home page Coder Social logo

component-horizontal-stacked-bar's Introduction

Seb Insua

Hi there, I'm Seb Insua, a software engineer and freelancer working on end-to-end product engineering from the user interface to the API and algorithm design.

I write technical articles, post programming ideas and experiments on my Gist and occasionally make open-source software. I'm always interested in new projects, so feel free to drop me a line.

Selected posts

Get in touch

component-horizontal-stacked-bar's People

Contributors

sebinsua avatar

Stargazers

 avatar

Watchers

 avatar  avatar

component-horizontal-stacked-bar's Issues

[V2] Update d3 to v4

API changes

  • d3.scale.lineard3.scaleLinear
  • d3.scale.category10d3.schemeCategory10
  • The selection.data method now returns a new selection rather than modifying the selection in-place. Read: what-makes-software-good
  • d3.layout.stackd3.stack
  • The stack generator now longer needs an x-accessor. In addition, the API has been simplified: the stack generator now accepts tabular input, such as an array of objects. The resulting array has one element per series. Each series has one point per month, and each point has a lower and upper value defining the baseline and topline:

Transformations

data:
[ { name: 'A', value: 25 },
  { name: 'B', value: 50 },
  { name: 'C', value: 75 },
  { name: 'D', value: 5 },
  { name: 'E', value: 45 } ]
layers before stack(...):
[ [ { y: 25, name: 'A', value: 25 } ],
  [ { y: 50, name: 'B', value: 50 } ],
  [ { y: 75, name: 'C', value: 75 } ],
  [ { y: 5, name: 'D', value: 5 } ],
  [ { y: 45, name: 'E', value: 45 } ] ]
layers after stack(...):
[ [ { y: 25, name: 'A', value: 25, y0: 0 } ],
  [ { y: 50, name: 'B', value: 50, y0: 25 } ],
  [ { y: 75, name: 'C', value: 75, y0: 75 } ],
  [ { y: 5, name: 'D', value: 5, y0: 150 } ],
  [ { y: 45, name: 'E', value: 45, y0: 155 } ] ]
invertedLayers:
[ [ { x: 25, x0: 0, y: 25, name: 'A', value: 25, y0: 0 } ],
  [ { x: 50, x0: 25, y: 50, name: 'B', value: 50, y0: 25 } ],
  [ { x: 75, x0: 75, y: 75, name: 'C', value: 75, y0: 75 } ],
  [ { x: 5, x0: 150, y: 5, name: 'D', value: 5, y0: 150 } ],
  [ { x: 45, x0: 155, y: 45, name: 'E', value: 45, y0: 155 } ] ]
xMax:
200

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.