Fire Charts — free chart library for developers
Fire Charts is a trading chart you can embed in your site or app: plug in your data and get tabs, multiple charts on screen, indicators and drawing tools. Our own Trading section runs on this library.
Source code on GitHub See it live: Trading
Terms
| Price | Free, no paid plans |
|---|---|
| License | MIT-0: use it in commercial products, modify and redistribute |
| Link back to us | Not required |
| Logo on the chart | Not required |
| Application and approval | Not required: download and plug in |
| Data | Yours: the library takes candles from your data source |
| Source code | Open, hosted on GitHub |
What is included
| Tabs | Up to 40 tabs, each with its own layout |
|---|---|
| Charts on screen | One, two or four, each with its own symbol and interval |
| Intervals | From one minute to one month — whatever your data source provides; history loads as you scroll |
| Chart types | Candles, hollow candles, bars, line, area, Heikin Ashi |
| Scales | Regular, logarithmic, percent |
| Indicators | 45, up to 40 on one chart, adjustable settings |
| Drawing | 23 tools: lines, channels, Fibonacci, shapes, brush, text, measure; magnet, undo and redo |
| Export | PNG snapshot and candles as CSV |
| Saving | In the browser; optionally on your server, per user |
| Languages | English, Russian, Spanish, French; add your own |
| Formatting | Colors via CSS variables: dark and light themes, matched to your site |
| Mobile | Works on touch screens |
How to set it up
A data source is two functions: one describes the symbol, the other returns candles. The library does the rest.
<link rel="stylesheet" href="src/fire-charts.css">
<div id="chart" style="height: 600px"></div>
<script src="vendor/klinecharts.min.js"></script>
<script type="module">
import { createFireChart } from './src/fire-charts.js';
await createFireChart(document.getElementById('chart'), {
defaults: ['BTCUSDT'],
datafeed: {
resolveSymbol: async (ref) => ({ ref, sym: 'BTC', name: 'Bitcoin', tfs: ['1h', '4h', '1d', '1w'], tf: '1d' }),
getBars: async ({ symbol, tf, before, limit }) => {
const rows = await fetch(`/api/candles?s=${symbol.ref}&tf=${tf}&limit=${limit}${before ? `&before=${before}` : ''}`).then((r) => r.json());
return { bars: rows, more: rows.length === limit }; // [{ timestamp, open, high, low, close, volume }]
},
},
});
</script>
Documentation: all options · Examples: demo and live data · README
What it is built on
Candles, axes, the crosshair and basic lines are drawn by the open-source KLineChart engine (Apache-2.0 license). Fire Charts is our layer on top: tabs and toolbars, 18 indicators, shapes, saving, undo, themes and languages. A copy of the engine ships in the repository with its license — the only condition of its authors, and it does not require a link on your page.
FAQ
Is Fire Charts really free?
Yes. The MIT-0 license allows any use, including commercial, with no payment and no attribution.
Do I have to link to BotHub FiRe?
No. No link, no logo, no application.
Where does the chart get its quotes?
From your source: an exchange API, a broker or your own server. The library does not supply data; the examples include a ready connection to a public crypto exchange API.
Does it work with React, Vue or a plain page?
Yes: it is plain JavaScript modules with no build step. The library needs a page element with a set height.
Where do I report a bug or suggest a feature?
In the GitHub repository, under Issues.