Marc  Schroeder

Marc Schroeder


MongoDB Charts - Preview

In just one minute, see why MongoDB Charts is the best way to create, share and embed visualizations of MongoDB data. MongoDB Charts makes it fast to visualize, easy to get started and share, and enables you to create powerful data experiences and insights out of rich JSON data.

#mongodb #programming #developer

What is GEEK

Buddha Community

MongoDB Charts - Preview

Query of MongoDB | MongoDB Command | MongoDB | Asp.Net Core Mvc

#mongodb tutorial #mongodb tutorial for beginners #mongodb database #mongodb with c# #mongodb with core #mongodb

Install MongoDB Database | MongoDB | Asp.Net Core Mvc


#mongodb #mongodb database #mongodb with c# #mongodb with core #mongodb tutorial for beginners #mongodb tutorial

Insert & Save method in MongoDB | Inserting Document | CRUD Operation in MongoDB


#mongodb #mongodb tutorial for beginners #mongodb tutorial #mongodb database #learn mongodb

Einar  Hintz

Einar Hintz


Visualizing data with NGX-Charts in Angular

Data Science, Data Analytics, Big Data, these are the buzz words of today’s world. A huge amount of data is being generated and analyzed every day. So communicating the insights from that data becomes crucial. Charts help visualize the data and communicate the result of the analysis with charts, it becomes easy to understand the data.

There are a lot of libraries for angular that can be used to build charts. In this blog, we will look at one such library, NGX-Charts. We will see how to use it in angular and how to build data visualizations.

What we will cover:

  1. Installing ngx-chart.

  2. Building a vertical bar graph.

  3. Building a pie chart.

  4. Building an advanced pie chart.

A brief introduction about NGX-Charts

NGX-Chart charting framework for angular2+. It’s open-source and maintained by Swimlane.

NGX-Charts does not merely wrap d3, nor any other chart engine for that matter. It is using Angular to render and animate the SVG elements with all of its binding and speed goodness and uses d3 for the excellent math functions, scales, axis and shape generators, etc. By having Angular do all of the renderings it opens us up to endless possibilities the Angular platform provides such as AoT, Universal, etc.

NGX-Charts supports various chart types like bar charts, line charts, area charts, pie charts, bubble charts, doughnut charts, gauge charts, heatmap, treemap, and number cards.

Installation and Setup

1. Install the ngx-chart package in your angular app.

npm install @swimlane/ngx-charts --save

2. At the time of installing or when you serve your application is you get an error:

ERROR in The target entry-point "@swimlane/ngx-charts" has missing dependencies: - @angular/cdk/portal

You also need to install angular/cdk

npm install @angular/cdk --save

3. Import NgxChartsModule from ‘ngx-charts’ in AppModule

4. NgxChartModule also requires BrowserAnimationModule. Import is inAppModule.


import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { NgxChartsModule }from '@swimlane/ngx-charts';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
  declarations: [
  imports: [
  providers: [],
  bootstrap: [AppComponent]
export class AppModule { }

Amazing! Now we can start using ngx-chart component and build the graph we want.

In the AppComponent we will provide data that the chart will represent. It’s a sample data for vehicles on the road survey.

#angular #angular 6 #scala #angular #angular 9 #bar chart #charting #charts #d3 charts #data visualisation #ngx #ngx charts #pie

Execute MongoDB Command | Create, Drop and Select Database | MongoDB | Asp.Net Core Mvc

#mongodb #mongodb with core #mongodb with c# #mongodb tutorial for beginners #mongodb tutorial #learn mognodb