Candlestick Chart
Биржевые свечи с объёмами и скользящими средними. Pro · Графики и аналитика › Динамика
Установка
npx valyro-cli@latest login
npx valyro-cli@latest add candlestick-chart
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { CandlestickChart } from 'valyro-ui-pro';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
data * | CandlestickDatum[] | One candle per period, oldest first. Gaps between dates (weekends) take no space. | |
height | number | 320 | Total height in px including the volume pane; width follows the container. Default 320. |
showVolume | boolean | Volume bars under the candles. Default: shown when the data has volumes. | |
movingAverages | number[] | [] | Periods of simple moving averages of the close drawn over the candles, e.g. [20, 50]. |
valueFormatter | ValueFormatter | Formats prices in the tooltip, the crosshair tag and the data table. Axis ticks keep its units, without spare decimals ("$210"). | |
tickFormatter | ValueFormatter | Formats the price-axis ticks instead of the shortened valueFormatter. | |
volumeFormatter | ValueFormatter | Formats volumes. Default: compact numbers. | |
dateFormatter | (date: Date) => string | Formats the date of a candle in the tooltip and data table. Default: medium date (with time for intraday data). | |
locale | string | BCP 47 locale for the default number and date formatting. Default: the ThemeProvider locale, then the browser's. | |
labels | Partial<CandlestickChartLabels> | Overrides for the built-in strings. | |
showGrid | boolean | true | Grid lines at the price ticks and at the labelled dates. |
loading | boolean | false | Shows a placeholder of the same height while data loads. |
ariaLabel * | string | Accessible name of the chart (also the caption of its sr-only data table). |
Похожие компоненты
- Line Chart — Линейные графики
- Bar Chart — Столбчатые диаграммы
- Area Chart — Графики с заливкой
- Scatter Chart — Точечные и пузырьковые диаграммы с линией тренда
- Sparkline — Мини-графики
- Confidence Band Chart — Прогноз с доверительными интервалами и выбросами, точки читаются с клавиатуры
- Donut Chart — Кольцевые диаграммы
- Treemap — Иерархии площадями с переходом по уровням
- Funnel Chart — Воронки конверсии
- Sankey Chart — Диаграммы потоков между этапами
- Radar Chart — Лепестковые диаграммы для сравнения профилей
- Heatmap — Тепловые карты
Назад: Confidence Band Chart · Далее: Donut Chart · Весь раздел «Графики и аналитика»