GithubHelp home page GithubHelp logo

d3by5-axis's Introduction

d3by5-axis

The d3by5-axis is part of the d3by5 graph tools, this specific package will configure [d3 svg axis components] (https://github.com/d3/d3/wiki/svg-axes) to the visualisations created by a d3by5 graph

NOTE

This is as for now a company internal project, see C3 or NVD3 for D3 fully functional chart libraries.

DEPENDENCIES

  • d3

API

  • All methods are getters/setters. Called without arguments they return the current option value. Called with arguments sets option value and returns axis.

x.axis = d3by5Axis().show(opt.xAxis).pos(opt.xPos).scale(x.scale).align(opt.xAlign).ticks(opt.xTicks);

Method / option Argument(s) Default Value Description
.show() bool true If the aisi should show or not
.pos() string Not implemented
.scale() d3 scale See d3 reference
.align() string top, bottom, left or right. Se d3 ref.
.ticks() array Count and format of ticks

EXAMPLE

chart.apply()

x.axis = d3by5Axis().show(true).pos(bottom).scale(x.scale).align(bottom).ticks([10]);

LICENCE

MIT

d3by5-axis's People

Contributors

svale avatar

Watchers

James Cloos avatar  avatar Bård Røtzer avatar

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.