@raushan_9001/ult-lg-charts
v1.0.0
Published
Performant financial charts built with HTML5 canvas
Downloads
227
Maintainers
Readme
ult-lg-charts
Performant financial charts built with HTML5 canvas. A customized build of Lightweight Charts with the attribution logo removed.
Installation
npm install @raushan_9001/ult-lg-chartsUsage
import { createChart } from '@raushan_9001/ult-lg-charts';
const chart = createChart(document.getElementById('chart'), {
width: 800,
height: 400,
});
const lineSeries = chart.addLineSeries();
lineSeries.setData([
{ time: '2024-01-01', value: 100 },
{ time: '2024-01-02', value: 105 },
{ time: '2024-01-03', value: 98 },
]);Standalone (no bundler)
<script src="https://unpkg.com/@raushan_9001/ult-lg-charts/dist/lightweight-charts.standalone.production.js"></script>
<script>
const chart = LightweightCharts.createChart(document.getElementById('chart'), {
width: 800,
height: 400,
});
</script>Features
- Candlestick, line, area, bar, histogram, and baseline series
- Real-time updates
- Custom price scales and time scales
- TypeScript support
- No attribution logo
License
MIT — Raushan Raj
