1

Are there any free charting libraries which can be used to display charts(Gauge/Bar) in lightning component framework?

Note: The fusion chart has good UI but it is paid for commercial usage. Are there any other library compatible with Lightning Framework. Please suggest.

3 Answers 3

3

A good place to start is with the "non- exhaustive list of libraries that are known to work with LockerService" that are part of the page LockerService and Lightning Container Component: Securely Using Third-Party Libraries in Lightning Components. That includes Chart.js.

(Charts in D3 are usually done with a library that sits on top of D3, as otherwise you are having to construct the charts from low level elements like lines.)

3
  • I have one doubt. There is non- exhaustive list of libraries to be used in lightning component. Can we use any other libraries like fusionChart.js or blockUI.js etc. If yes, How to check if a particular library is compatible with lightning locker service or not? Commented Jun 13, 2017 at 14:38
  • @MuzammilBajaria I don't know of a defined process - might be a good new question to post on this site.
    – Keith C
    Commented Jun 13, 2017 at 15:23
  • Thank You @keith. I posted new question. Let me know if you find how to implement fusionchart in lightning component. Commented Jun 13, 2017 at 16:05
3

We're using Highcharts Version 5.0.7 in our application using Lightning Framework.

It is strict mode compatible and it works even when Locker Service is active. Also, it has lots of options and is highly customizable.

You can checkout Highcharts Demos to know the various types of charts available.

Note: It's free for non-commercial use(ie. for a personal website, a school site or a non-profit organisation).

1

Check out D3 charts. They have probably the most extensive library of charts and above all it is FREE!

It is also locker service compatible, I have tried latest version of d3 working fine with locker service enabled.

Other free yet popular charting options:

  1. Open charts - Haven't tried it in Lightning.
  2. C3 Charts - Based D3 charts - Never tried it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .