Skip to content

AbhijitBorate-code/Angular19-ifelsecloud-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 

Repository files navigation


πŸ“Š IfElseCloud Dashboard Setup Guide

A quick and complete guide to set up chart libraries and icon support for your Angular dashboard.


πŸ”§ Installation Steps

1. Install Chart Libraries: c3 and d3

These libraries are essential for rendering interactive charts.

npm install c3
npm install d3

βœ… Note: c3 requires d3, so both must be installed.


2. Install Font Awesome for Icons

Font Awesome provides scalable vector icons used throughout the UI.

npm install @fortawesome/fontawesome-free

3. Configure Global Styles in angular.json

Add Font Awesome styles to the styles array in angular.json:

"styles": [
  "node_modules/@fortawesome/fontawesome-free/css/all.min.css",
  "src/styles.scss"
]

⚠️ Place the Font Awesome entry before your styles.scss to prevent style override issues.


βœ… Setup Complete

You can now use:

  • c3 charts in Angular components.
  • Font Awesome icons directly in templates, e.g.:
<i class="fas fa-chart-line"></i>

πŸ“¦ Example Usage

Chart Example (dashboard.component.ts)

import * as c3 from 'c3';

ngAfterViewInit() {
  c3.generate({
    bindto: '#chart',
    data: {
      columns: [
        ['Data', 30, 200, 100, 400, 150, 250]
      ],
      type: 'line'
    }
  });
}

Icon Example (dashboard.component.html)

<i class="fas fa-chart-pie"></i> Chart Overview

πŸ“Έ Output Photos URL

dashboard/public/libs-outputs

πŸ§ͺ Node & Serve

  • Use Node.js v19
  • Start the project with:
ng serve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published