Louie Sanders

Louie Sanders


Fully Featured Gantt Chart Component By IBM

Gantt Chart is a type of bar chart that can be used to visualize your data (activities and scheduled tasks) in a 2D timeline interface.

IBM Gantt Chart is a JavaScript library that provides an easy way to implement a customizable, professional, full featured online gantt chart generator for scheduling your tasks on your modern web app.


  • Works with jQuery, Vanilla JavaScript, and React.js framework.
  • Collapsible task names.
  • Fully responsive and auto fits your layout.
  • Custom date format.
  • Custom time table rendering and layout.
  • Allows the user to zoom in/out the Gantt Chart.
  • Allows the user to filter and search through data.
  • Supports AJAX data fetching.
  • Supports any types of data: “json”, “xml”, “html” or “text”.

Basic usage:

  1. Load the stylesheet ibm-gantt-chart.css and JavaScript ibm-gantt-chart.js from the dist folder.
<link href="./dist/ibm-gantt-chart.css" rel="stylesheet" />
<script src="./dist/ibm-gantt-chart.js"></script>
  1. Create a placeholder for the gantt chart.
<div id="gantt"></div>
  1. Prepare your data in a JS array containing ID, names, and activities as follows.
var data = [
      id: 'NURSES+Anne',
      name: 'Anne',
      activities: [
          id: 'SHIFTS+Emergency+Monday+2+8',
          name: 'Emergency',
          start: 1474880400000,
          end: 1474902000000,
      id: 'NURSES+Bethanie',
      name: 'Bethanie',
      activities: [],
      id: 'NURSES+Betsy',
      name: 'Betsy',
      activities: [
          id: 'SHIFTS+Emergency+Wednesday+12+18',
          name: 'Emergency',
          start: 1475089200000,
          end: 1475110800000,
          id: 'SHIFTS+Emergency+Saturday+12+20',
          name: 'Emergency',
          start: 1475348400000,
          end: 1475377200000,
          id: 'SHIFTS+Consultation+Friday+8+12',
          name: 'Consultation',
          start: 1475247600000,
          end: 1475262000000,
      id: 'NURSES+Cathy',
      name: 'Cathy',
      activities: [
          id: 'SHIFTS+Emergency+Sunday+20+2',
          name: 'Emergency',
          start: 1475463600000,
          end: 1475485200000,
          id: 'SHIFTS+Emergency+Saturday+12+20',
          name: 'Emergency',
          start: 1475348400000,
          end: 1475377200000,
          id: 'SHIFTS+Emergency+Monday+18+2',
          name: 'Emergency',
          start: 1474938000000,
          end: 1474966800000,
      id: 'NURSES+Cindy',
      name: 'Cindy',
      activities: [
          id: 'SHIFTS+Emergency+Saturday+20+2',
          name: 'Emergency',
          start: 1475377200000,
          end: 1475398800000,
          id: 'SHIFTS+Consultation+Friday+8+12',
          name: 'Consultation',
          start: 1475247600000,
          end: 1475262000000,
          id: 'SHIFTS+Consultation+Tuesday+8+12',
          name: 'Consultation',
          start: 1474988400000,
          end: 1475002800000,
  1. Config how to fetch resources for the Gantt chart.
var config = {
    data: {
      resources: {
        data: data, // resources are provided in an array. Instead, we could configure a request to the server.
        // Activities of the resources are provided along with the 'activities' property of resource objects.
        // Alternatively, they could be listed from the 'data.activities' configuration.
        activities: 'activities',
        name: 'name', // The name of the resource is provided with the name property of the resource object.
        id: 'id', // The id of the resource is provided with the id property of the resource object.
      // As activities are provided along with the resources, this section only describes how to create
      // activity Gantt properties from the activity model objects.
      activities: {
        start: 'start', // The start of the activity is provided with the start property of the model object
        end: 'end', // The end of the activity is provided with the end property of the model object
        name: 'name', // The name of the activity is provided with the name property of the model object
  1. Configure a toolbar associated with the Gantt chart.
var config = {
    toolbar: [
        type: 'button',
        text: 'Refresh',
        fontIcon: 'fa fa-refresh fa-lg',
        onclick: function(ctx) {
  1. Initialize the library to generate a basic Gantt chart.
new Gantt('gantt', config);
  1. Implement the IBM Gantt Chart as a jQuery plugin.
<!-- jQuery Library -->
<script src="jquery.min.js"></script>
<!-- jQuery Datatables plugin -->
<script src="jquery.dataTables.min.js"></script>
<link href="jquery.dataTables.min.css" rel="stylesheet" />
<!-- VIS Library -->
<script src="vis.min.js"></script>
<link href="vis.min.css" rel="stylesheet" type="text/css" />
<!-- IBM Gantt Chart -->
<link href="./dist/ibm-gantt-chart-jquery.css" rel="stylesheet" />
<script src="./dist/ibm-gantt-chart-jquery.js"></script>
new Gantt('gantt', config);
  1. Implement the IBM Gantt Chart as a React component.
import React from 'react';
import ReactDOM from 'react-dom';
import GanttChart from 'ibm-gantt-chart-react';
import 'ibm-gantt-chart/dist/ibm-gantt-chart.css';
const config = { ... };
ReactDOM.render(<GanttChart config={config} />, document.getElementById('gantt'));
  1. Implement the IBM Gantt Chart as a React component.
import React from 'react';
import ReactDOM from 'react-dom';
import GanttChart from 'ibm-gantt-chart-react';
import 'ibm-gantt-chart/dist/ibm-gantt-chart.css';
const config = { ... };
ReactDOM.render(<GanttChart config={config} />, document.getElementById('gantt'));
  1. For advanced usages, visit the Official Documentation for more details.

Download Details:

Author: IBM

Live Demo: https://ibm.github.io/gantt-chart/packages/ibm-gantt-chart-docs/storybook/

GitHub: https://github.com/IBM/gantt-chart

#javascript #jquery #react

What is GEEK

Buddha Community

Fully Featured Gantt Chart Component By IBM

Top 10 Best React Chart Component for App

React chart is a graphical representation of data, in which “the data is represented by symbols, such as bars in a bar chart, lines in a line chart, or slices in a pie chart”. Using the right type of chart is one decision to make when presenting data but as React developers, we have our own set of concerns, mainly, choosing the right chart component library.

Here are the 10 best react charts component I’ve picked. You can view and apply to your application.

1. Rough Charts

A responsive, composable react charting library with a hand-drawn style.


  • It’s responsive.
  • It’s flexible and easy to compose. You can compose all available ChartSeries Components and render any shapes you like.
  • It’s lovely.
  • It’s written in TypeScript.

Rough Charts

View Demo: https://beizhedenglong.github.io/rough-charts/?path=/docs/roughcharts–page

Github: https://github.com/beizhedenglong/rough-charts

Download Link: https://github.com/beizhedenglong/rough-charts/archive/master.zip

2. Channel Grapher

This is a responsive ThingSpeak API grapher. It uses a JSON router to overcome CORS.

Built using ReactJS, Bootstrap and ChartJS.

Channel Grapher

View Demo: https://opens3.net/channel-grapher.html

Github: https://github.com/wilyarti/channel-grapher

Download Link: https://github.com/wilyarti/channel-grapher/archive/master.zip

3. react-charts

Simple, immersive and interactive charts for React.


  • Line, Bar, Bubble, & Area Charts
  • Hyper Responsive
  • Powered by D3
  • Fully Declarative
  • Flexible data model


View Demo: https://react-charts.js.org/examples/line

Github: https://github.com/tannerlinsley/react-charts

Download Link: https://github.com/tannerlinsley/react-charts/archive/master.zip

4. react-charts-and-maps

This project contains the implementation of libraries D3, highcharts and react-google-maps with the ReactJS. It shows how easy is adding those libraries in ReactJS.


View Demo: https://marekdano.github.io/react-charts-and-maps/

Github: https://github.com/marekdano/react-charts-and-maps

Download Link: https://github.com/marekdano/react-charts-and-maps/archive/master.zip

5. STORM React Diagrams

React Diagrams is currently getting a bit of a rewrite to enable much more advanced features.

STORM React Diagrams

View Demo: http://projectstorm.cloud/react-diagrams/?path=/story/simple-usage–simple-flow-example

Github: https://github.com/projectstorm/react-diagrams

Download Link: https://github.com/projectstorm/react-diagrams/archive/master.zip

6. React-d3-graph

Interactive and configurable graphs with react and d3 effortlessly.


View Demo: https://goodguydaniel.com/react-d3-graph/sandbox/index.html

Github: https://github.com/jcapobianco-cbi/react-d3-graph-cbi

Download Link: https://github.com/jcapobianco-cbi/react-d3-graph-cbi/archive/master.zip

7. React-VizGrammar

React VizGrammar is a wrapper around Victory JS and it makes charting easier by adding boilerplate code so that designers and developers can get started and set it up in a few minutes.

A chart can be embedded in a React environment simply by using the VizG react component.

React VizGrammar

View Demo: https://wso2.github.io/react-vizgrammar/#/

Github: https://github.com/wso2/react-vizgrammar

Download Link: https://github.com/wso2/react-vizgrammar/archive/master.zip

8. preact-charts

preact based charting library. Written with d3-maths, and TypeScript!


View Demo: https://codesandbox.io/s/ko300qzppv

Github: http://github.com/pmkroeker/preact-charts

Download Link: https://github.com/pmkroeker/preact-charts/archive/master.zip


REAVIZ is a modular chart component library that leverages React natively for rendering the components while using D3js under the hood for calculations. The library provides an easy way to get started creating charts without sacrificing customization ability.


View Demo: https://reaviz.io/?path=/docs/docs-intro–page

Github: https://github.com/jask-oss/reaviz

Download Link: https://github.com/jask-oss/reaviz/archive/master.zip

10. React Signals Plot

This is React Signals Plot component for geophysical data visualization.

The component supports ‘on the fly’ data compression. That’s why you can use it for drawing line charts which contain millions of points. ReactSignalsPlot is an interactive component. You can use a mouse or touch to move and zoom.

React Signals Plot

View Demo: https://gromtech.github.io/react-signals-plot/

Github: https://github.com/gromtech/react-signals-plot

Download Link: https://github.com/gromtech/react-signals-plot/archive/develop.zip

#react #react-chart #react-chart-component #chart #chart-component

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

Arun A


Blazor Charts Component | Interactive Live Charts | Syncfusion

Blazor Charts is a well-crafted charting component to visualize data. It contains a rich UI gallery of 30+ charts and graphs, ranging from line to financial that cater to all charting scenarios. Its high performance helps render large amounts of data quickly. It also comes with features such as zooming, panning, tooltip, crosshair, trackball, highlight, and selection.

#charts #blazor #best #interactive charts #chart types

Generate Gantt Chart in Python

A step by step tutorial on how to create a simple Gantt Chart using matplotlib in python

Introduction: What is Gantt Chart

A Gantt chart, the most common method used in project management to visualize project schedule and status.

Gantt chart is a type of bar chart showing activities (tasks or events) displayed against time.

The chart is named after its inventor, Henry Gantt, who designed such a chart around the early twentieth century.

In this article I will explain how to create a Gantt chart in python using matplotlib library.

Import Libraries

First step in programing a Gantt Chart is importing the required libraries:

1. Pandas : Reading data and data analytics

2. Matplotlib : Data visualization

3. Datetime : Date manipulation

import pandas as pd
import matplotlib.pyplot as plt
import datetime as dt

#data-visualization #python #matplotlib #gantt-chart #project-management #generate gantt chart in python

August  Larson

August Larson


Create an Advanced Gantt Chart in Python

How to generate a Gantt Chart which contains additional details like Departments, Percentage Completion etc.


This is the second part of visualizing Gantt Chart using python. Check this article in which steps for creating a basic Gantt Chart are explained in detail.

The basic Gantt Chart contains bars corresponding to every task of the project. In this article we will improve upon the basic Gantt Chart including details like completion status and sub-category for each task.

#data-visualization #gantt-chart #report #python #create #advanced gantt chart in python