Skip to content

AndrewJBateman/angular-highcharts-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

59d0fe9 Β· Sep 13, 2023

History

53 Commits
Jul 9, 2020
Mar 9, 2020
Sep 13, 2023
Jul 9, 2020
Mar 8, 2020
Nov 16, 2021
May 17, 2021
Sep 13, 2023
Jun 12, 2022
Mar 8, 2020
Sep 13, 2023
Sep 13, 2023
Jul 9, 2020
Jan 9, 2023
Jul 9, 2020
Jul 9, 2020
Jul 9, 2020

Repository files navigation

⚑ Angular HighCharts Dashboard

  • Angular app to show a dashboard with a selecion of chart types from Highcharts
  • Much of code from code-academia but to latest Angular version
  • Note: to open web links in a new window use: ctrl+click on link

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

πŸ“„ Table of contents

πŸ“š General info - Highcharts/Angular Chart Types

πŸ“· Screenshots

Example screenshot Example screenshot

πŸ“Ά Technologies

πŸ’Ύ Setup

  • Install dependencies using npm i
  • Run npm start 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

  • extract from initialisation of pie chart page, showing chart options
ngOnInit() {
    this.chartOptions = {
      chart: {
        plotBackgroundColor: null,
        plotBorderWidth: null,
        plotShadow: false,
        type: 'pie'
      },
      title: {
        text: 'BROWSERS: MARKET SHARE'
      },
      tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
      },
      accessibility: {
        point: {
          valueSuffix: '%'
        }
      },
      plotOptions: {
        pie: {
          allowPointSelect: true,
          cursor: 'pointer',
          dataLabels: {
            enabled: true,
            format: '<b>{point.name}</b>: {point.percentage:.1f} %'
          }
        }
      },
      exporting: {
        enabled: false
      },
      credits: {
        enabled: false
      },
      series: [{
        name: 'Brands',
        colorByPoint: true,
        data: this.data
      }]
    };
}

πŸ†’ Features

  • Colourful chart types

πŸ“‹ Status & To-Do List

  • Status: Working but does not display properly on mobile screen
  • To-Do: Replace flex-layout

πŸ‘ Inspiration

πŸ“ License

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

βœ‰οΈ Contact

  • Repo created by ABateman, email: gomezbateman@yahoo.com