Git Product home page Git Product logo

energy's Introduction

Data-Visualization

This project provides Javascript libraries for visualizing data. These libraries are built over D3, using web standards you can display your data.

Resources

Installing

This projects is over d3 so you must include D3.js version 4. Depending on the visualization that you want to use you must include one the following scripts

Radial

  <script src="https://cdn.rawgit.com/xdanielsb/Energy/e21a8fa8/base/b3/code_radial$.js"></script>

Peaks

  <script src="https://cdn.rawgit.com/xdanielsb/Energy/e21a8fa8/base/b1/code_peak$.js"></script>

Black

  <script src="https://cdn.rawgit.com/xdanielsb/Energy/e21a8fa8/base/b2/code_black$.js"></script>

Configuration in your html

<html lang="en">
  <head>
    <meta charset="UTF-8">
    <script src="https://d3js.org/d3.v4.min.js"></script>
    <script src="code_black$.js"></script>
    <title>Tittle</title>
  </head>
  <body>
    <div id="chart"></div>
    <!-- Here you call the library inside an script tag, see below the description of usage -->
  </body>

</html>

Usage

With a CSV file

let peak = new Peak("../data1.csv")
        // new Radial("../data1.csv")
        // new BlackHole("../data1.csv")
let myHouse = 15
peak.plot("chart", myHouse)

With an array

let data  = [
  {name:"House1",y:600},
  {name:"House2",y:750},
  {name:"House3",y:800},
  {name:"House4",y:900},
  {name:"House5",y:1000},
  {name:"House6",y:900},
  {name:"House7",y:700},
  {name:"House8",y:900},
  {name:"House9",y:800},
  {name:"House10",y:1000},
  {name:"House11",y:700},
  {name:"House12",y:600}
]
let peak =  new Peak(data)
        //  new BlackHole(data)
        //  new Radial(data)
let myHouse = 15
peak.plot("chart", myHouse, false)

Contributors

Designers

Developer

License

This project is licensed under the MIT License - see the LICENSE file for details

energy's People

Contributors

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