Giter Club home page Giter Club logo

scatta's Introduction

Scatta

This reusable, flexible D3 plot template can be pasted into your HTML and modified as needed. I use it for several data visualization projects, e.g. this and this.

##How it looks by default Below you'll see how this template looks without any additional customization. The next section explains how you may easily customize the formatting and look of it.

scattaDefault

##How to customize the template Catering this template to your specific needs is simple. It is controlled by just 5 sets of variables assigned at the start of the script tag in "scatta.html":

  1. Overall graph size can be adjusted by modifying the "w" and "h" variables.

  2. Axis formatting is accomplished by specifying the leftmost and rightmost values on the axis ("x0" and "xN" for the x-axis, "y0" and "yN" for the y-axis), and where in the graph the axes should be drawn ("xAxisLoc" and "yAxisLoc").

  3. Tick marks are controlled by the "tX" (for the x-axis) and "tY" (for the y-axis) parameters, respectively.

  4. Graph/axis titles are specificed by the "graphTitleText", "xAxisLabelText", and "yAxisLabelText" variables.

  5. Padding between titles and the graph is controlled by the "padding" parameter.

And of course, various style attributes can be adjusted by tinkering with the "scatta.css" file.

scatta's People

Contributors

nikhilnathwani avatar

Watchers

 avatar  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.