Skip to content

Examples

Live, interactive demos of the library — each one runs the actual UrChart instance in your browser via the @urcharts/vue wrapper. Tweak the controls, watch the chart respond.

ExampleWhat it shows
LineMulti-series line chart with reactive series count + density
Area gradientOKLab / OKLCh gradient fills, multi-stop, diverging
CandleOHLC financial chart with pan + zoom
BarGrouped, stacked, and diverging bar layouts
Live streamDelta protocol — append ticks at variable Hz
Pan & zoomPer-axis pan/zoom toggle + live event readout
ThemesHot-swap dark / light / financial-dark themes
PluginsToggle every built-in plugin on/off and see what changes

How they're built

Every example is a Vue 3 single-file component using <UrChart> from @urcharts/vue:

vue
<script setup lang="ts">
import { computed, ref } from "vue";
import { UrChart } from "@urcharts/vue";
import { marks, anim, axes, type ChartOptions } from "@urcharts/core";

const points = ref(240);
const options = computed<ChartOptions>(() => ({
  series: [{ id: "a", type: "line", data: sample(points.value), color: "#38bdf8" }],
  plugins: [marks(), anim(), axes()],
}));
</script>

<template>
  <UrChart :options="options" style="width:100%;height:360px" />
</template>

Reactive options flow through chart.update(). Series are diffed by id — added series enter, removed series exit, untouched series reuse their RingBuffer.

Released under the MIT License.