GithubHelp home page GithubHelp logo

andrewjbateman / angular-data-dashboard Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 6.34 MB

:clipboard: Angular dashboard to display data using Google charts

Home Page: https://AndrewJBateman.github.io/angular-data-dashboard/

License: MIT License

JavaScript 10.73% TypeScript 82.20% HTML 5.56% CSS 1.51%
google-api charts linecharts piechart css3 angular angular-data-dashboard google-charts dashboard typescript4

angular-data-dashboard's Introduction

โšก Angular Data Dashboard

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

๐Ÿ“„ Table of contents

๐Ÿ“š General info

  • Google chart tools have a wide range of interactive charts and data tools.
  • The Google Charts script files from https://www.gstatic.com/charts/loader.js are loaded into assets/js/loader.js and this path is included in the scripts section of the angular.json file.
  • A google-chart.service module is added so the Google Charts script can be used by multiple charts in the app.

๐Ÿ“ท Screenshots

Example screenshot

๐Ÿ“ถ Technologies

๐Ÿ’พ Setup

  • Run npm i to install dependencies.
  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
  • Run npm run build to build the project. The build artifacts will be stored in the docs/ directory.

๐Ÿ’ป Code Examples

// method using the Google Charts library with the gLib variable
// create a new chart using the LineChart method, passing in the container div to show the line chart.
private drawChart() {
  const data = this.gLib.visualization.arrayToDataTable([
    ['Year', 'Sales', 'Expenses'],
    ['2004',  1000,      400],
    ['2005',  1170,      460],
    ['2006',  660,       1120],
    ['2007',  1030,      540]
  ]);

  const options = {
    title: 'Company Performance',
    curveType: 'function',
    legend: { position: 'bottom' }
  };

  const chart = new this.gLib.visualization.LineChart(document.getElementById('divLineChart'));

  chart.draw(data, options);
}j

๐Ÿ†’ Features

  • Cross-browser compatibility.
  • Dashboards can be used to manage multiple charts that share the same data.
  • Data can also be fetched from a REST API endpoint or database service call.

๐Ÿ“‹ Status & To-Do List

  • Status: Working & deployed to GitHub.
  • To-Do: Nothing
  • Note: App is designed for PC/tablet and does not resize well for phones - could use angular mat cards or flex-grid to make it fully responsive

๐Ÿ‘ Inspiration

๐Ÿ“ License

  • This project is licensed under the terms of the MIT license.

โœ‰๏ธ Contact

angular-data-dashboard's People

Contributors

andrewjbateman avatar dependabot[bot] avatar

Stargazers

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