ValyroUI English version

Map Layer Story

История по карте: шаги включают слои данных и кадрируют регион, без WebGL. Pro · Графики и аналитика › Аналитика и сценарии

Установка

npx valyro-cli@latest login
npx valyro-cli@latest add map-layer-story
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { MapLayerStory } from 'valyro-ui-pro';

Пропсы

PropTypeDefault
layers *MapStoryLayer[]Data layers the steps turn on and off.
steps *MapStoryStep[]The story, in order: narration, layers and the region to frame.
stepnumberIndex of the current step.
defaultStepnumber0Initial step when uncontrolled. Default 0.
onStepChange(step: number) => voidCalled when the reader moves to another step.
attribution *ReactNodeMap credit, always visible: base map and data licences.
bounds[west: number, south: number, east: number, north: number]Region of the first frame when a step sets none: [west, south, east, north]. Default: the world.
textRowsnumber8Rows of the text version per layer before "and N more". Default 8.
loadingbooleanfalseThe data is loading: skeleton.
errorReactNodeLoading failed: shown instead of the story.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3).
localestringBCP 47 locale for country names and numbers; defaults to the ThemeProvider's.
labelsPartial<MapLayerStoryLabels>Overrides for the built-in English text; keys left out keep their defaults.

Похожие компоненты

  • Gauge Chart — Круговые индикаторы
  • Metric Comparison — Сравнение показателей
  • Analytics Filter Bar — Фильтры дашборда
  • Scenario Simulator — Ползунки допущений меняют прогноз, коридор неопределённости и KPI
  • Variance Explainer — Водопад: из чего сложилось изменение KPI, с раскрытием факторов
  • Line Chart — Линейные графики
  • Bar Chart — Столбчатые диаграммы
  • Area Chart — Графики с заливкой
  • Scatter Chart — Точечные и пузырьковые диаграммы с линией тренда
  • Sparkline — Мини-графики
  • Confidence Band Chart — Прогноз с доверительными интервалами и выбросами, точки читаются с клавиатуры
  • Candlestick Chart — Биржевые свечи с объёмами и скользящими средними

Назад: Variance Explainer · Далее: Calendar View · Весь раздел «Графики и аналитика»