GithubHelp home page GithubHelp logo

somewhatcloudy / ng-dial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gordyd/ng-dial

0.0 2.0 0.0 136 KB

A interactive dial directive for Angular.js

License: MIT License

JavaScript 78.60% CSS 2.87% HTML 18.52%

ng-dial's Introduction

An Angular.js Interactive Dial

An visual component for gathering user input when values sit in a range between 0-100. Find a demo here.

Originally a JSFiddle this has now been turned into a ready-to-use Angular.js directive.

Features

  • interactive
  • animated
  • shows previous value
  • 2-way data binding (will respond to changes to model and update model accordingly)

Parameters

  • value
  • animate - either true or false. Default: false
  • startAngle - 0-360. Default: 0
  • endAngle - 0-360. Default: 360
  • innerRadius - An integer. Default: 60
  • outerRadius - An integer. Default: 100

Usage

In order to use in your project you will need to:

  1. include dial.js as one of your source files e.g <script src="js/dial.js">
  2. include dial.css for styling e.g. <link rel="stylesheet" href="css/dial.css" type="text/css">
  3. include gmd.dial as a dependency of your Angular app e.g. var app = angular.module('dialExampleApp', ['gmd.dialplot']);
  4. include a dial inside a template <gmd-dial value="initialValue"></gmd-dial>

Setup Example

Clone the repository

git clone https://github.com/GordyD/ng-dial.git
cd ng-dial
npm install
bower install
node app.js

Go to http://localhost:3000 to see example radial plots.

ng-dial's People

Contributors

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