Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graph/Chart tools for angular 2

Tags:

angular

The chart/graph tools I was able to find for angular 2 are

  • Zingchart
  • ng2-charts

Is there any other chart/graph tools for angular 2? Which is the best in terms of

  1. Performance
  2. Functionality
  3. Size
  4. Price
like image 720
Jobin Avatar asked Jul 29 '16 05:07

Jobin


People also ask

Which chart is best for Angular?

FusionCharts is one of the leading open-source Angular chart libraries available. This is because it fulfills your data visualization needs and seamlessly integrates into your web applications. It also makes it easy to build your visualizations.

Does Angular material have charts?

You can create Angular charts like Pie, Bar, Area, Line, Point, Stacked, Donut, Scatter, Gauge, Polar, Treemap, Stock, Financial, Geospatial Maps and more for your mobile or web apps. The benefit of our Angular chart vs. others is full support for features like: Responsive Web Design built in.

Is ng2-charts open-source?

The ng2-charts module is an open-source JavaScript library, and it is exclusively built for Angular 2+ and available via npm.

Can I use chart JS in Angular?

It allows us to create responsive bar charts, pie charts, line plots, donut charts, scatter plots, and other graphs. Simply select where on your page you want a graph to appear, what type of graph you want to plot, and then provide data, labels, and other options to Chart js.


1 Answers

Angular2 (unlike Angular1) does not require Angular specific implementations, you are free to use any 3rd party libs and componentise them thus ng2 can take full advantage of jQuery libs and bind to them.

I have had recent experience with ChartJS, ChartJS2, HighCharts and D3JS.

D3JS is like jQuery but for charts only. It requires you to build a chart from scratch, define axis and everything. This makes it very time consuming to use (but provides extreme flexibility). Generally, you won't have the time to invest in D3. However, there are libraries that work with D3 to simplify the process such as C3.

If you want a quicker result go with Highcharts or ChartJS2. If you are willing to spend money HighCharts is the best option. It is very professional and robust. It allows you to produce mixed chart types - such as bar chart WITH line chart and stuff. Really handy.

Alternatively, ChartJS is cheap and cheerful but does the job. You are limited on chart types but its a freebie.

I have had success dynamically binding chart data with all three of these libs in Angular2 so its very possible. You will see a whole load of data bound chart implementations on my GitHub.

(Most of the chart examples were done in Angular2 very early days so the code might not be the same these days but it gives you an idea how to approach dynamic data binding if you require this).

like image 190
danday74 Avatar answered Oct 08 '22 05:10

danday74