Astroneum documentation
Astroneum is a React charting library for financial data: candlesticks and eight other chart types, about 50 indicators, drawing tools and live updates. These guides use real charts you can drag, zoom and click, so you see what each setting does.
Where to start
Getting startedFrom an empty folder to a live chart in ten steps.Chart typesEight ways to draw the same market. Try each one.DatafeedsConnect your data, and watch the chart call your code.IndicatorsAdd indicators with props and see them appear.Speed and offlineThe history cache and indicator workers.How it worksThe parts of the chart and how data moves through them.ReferenceProps, methods and exports at a glance.
A chart in twelve lines
This is the whole component. The chart on the right is it, running on a simulated market. It updates every second; drag it to pan, scroll to zoom.
import { AstroneumChart } from 'astroneum'
import 'astroneum/style.css'
export default function App() {
return (
<AstroneumChart
symbol={symbol}
period={{ multiplier: 1, timespan: 'minute', text: '1m' }}
datafeed={datafeed}
theme="dark"
style={{ width: '100%', height: 420 }}
/>
)
}The big picture
Astroneum is a React component on top of a drawing engine. You give it a datafeed (where bars come from) and some settings; the engine turns bars into pixels.
Drawing diagram…