📒
nx-ng-starter
  • Contributor Covenant Code of Conduct
  • Contributing to this repository
  • Nx Ng Starter
  • Security
  • Support
  • Tools
    • diagrams
      • branching
      • pr-validation-pipeline
      • trunk-on-push-pipeline
    • tools/shell
    • tools/ts
      • Unit Coverage Stats
    • generators
      • client-feature
        • <%= name %>
      • client-store
        • <%= name %>
      • client-ui
        • <%= name %>
      • client-util
        • <%= name %>
  • .github
    • ISSUE_TEMPLATE
      • bug_report
    • ISSUE_TEMPLATE
      • feature_request
    • ISSUE_TEMPLATE
      • maintenance
  • Libraries
    • backend-auth
    • backend-diagnostics
    • backend-gql
    • backend-grpc
    • backend-interfaces
    • backend-logger
    • backend-websocket
    • client-chatbot
    • client-core-components
    • client-core
    • Angular D3 Chart Components Module
    • client-diagnostics
    • client-directives
    • client-gql
    • client-grpc
    • client-material
    • client-pwa-offline
    • client-services
    • client-sidebar
    • client-store-chatbot
    • client-store-http-api
    • client-store-http-progress
    • client-store-sidebar
    • client-store-theme
    • client-store-user
    • client-store-websocket
    • client-store
    • client-translate
    • client-unit-testing
    • Angular Eliza Chatbot Module
    • client-util-sentry
    • client-util
    • proto
Powered by GitBook
On this page
  • Description
  • Development commands reference
  • Usage
  • Within the development workspace
  • As an external package
  • Use the chart components
  • Chart examples

Was this helpful?

  1. Libraries

Angular D3 Chart Components Module

Previousclient-coreNextclient-diagnostics

Last updated 2 years ago

Was this helpful?

This library was generated with .

Description

The Angular chart components based on the library.

Supported chart types:

  • bar chart;

  • line chart;

  • pie chart;

  • radar chart;

  • force-directed chart;

The library contains Angular components as well as basic utility functions that can be used to implement the chart types mentioned above in TypeScript.

Development commands reference

Run nx test client-d3-charts to execute the unit tests.

Run nx lint client-d3-charts to lint the library.

Run nx build client-d3-charts to build the library.

Usage

Within the development workspace

Import the charts module

import { AppClientD3ChartsModule } from '@app/client-d3-charts';

As an external package

Install the package

yarn add @rfprodz/client-d3-charts d3 @types/d3

Import the charts module

import { AppClientD3ChartsModule } from '@rfprodz/client-d3-charts';

Use the chart components

in templates

<!-- bar chart -->
<app-bar-chart></app-bar-chart>
<!-- line chart -->
<app-line-chart></app-line-chart>
<!-- pie chart -->
<app-pie-chart></app-pie-chart>
<!-- radar chart -->
<app-radar-chart></app-radar-chart>
<!-- force-directed chart -->
<app-force-directed-chart></app-force-directed-chart>

in classes

import {
  AppPieChartComponent,
  AppRadarChartComponent,
  AppForceDirectedChartComponent,
  AppBarChartComponent,
  AppLineChartComponent,
} from '@rfprodz/client-d3-charts';

Chart examples

See the chart eamples components

import { AppChartExamplesComponent } from '@rfprodz/client-d3-charts';

or the of the chart examples component

Nx
D3.js
source code