Back

VibeFox JS Charts — Demo

Quick start

Plain HTML

Columns of the plan, a line of the fact with markers and its average line. Hover the chart for the shared tooltip, click a column, click a legend item to hide a series, scroll the mouse wheel over the plot to zoom.

Core concepts

Series and points

Points as plain numbers (with a null gap on Thursday), as [x, y] pairs with category names, and as objects with their own label and color.

Events

The line under the chart shows the last event and its payload. Click a point, click a legend item, drag on the plot to zoom.

State snapshots

Zoom in, hide a series and press Save state; then change the view (or press Reset zoom) and press Restore state. The saved JSON is shown under the chart.

Series types

Cartesian series

Pick a chart in the list: stacked columns with a target line, areas, bars, scatter and bubbles, a heatmap, a waterfall, box plots, a histogram, ranges and an x-range (tasks on rows).

Pie and other series without axes

Pick a chart in the list: a donut with a gauge, a pie (click a slice to pull it out), radar, polar, radial bars, a funnel with a pyramid, a treemap, a sunburst and bullet charts.

Relations, text and time

Pick a chart in the list: a sankey diagram, a chord diagram, a dependency wheel, an arc diagram, a network (drag its nodes), a word cloud, a Venn diagram and a timeline.

Axes

A time x axis and two y axes: the price on the left, the volume on the right with its own format. Press Log scale to switch the left axis to a logarithmic scale and back.

Labels, tooltips, legend and annotations

Data labels

Labels with a template outside the columns and percent labels of the pie slices. Press Labels on / off to switch the column labels.

Tooltip and legend

One shared tooltip with a crosshair and its own format, the legend on the right. Hover the plot; hover a legend item to highlight its series, click it to hide the series.

Annotations and statistics lines

A goal line, a shaded campaign band, the marked minimum and maximum of the fact series, and its average and trend lines (stats).

Ghost comparison

The dashed outline is last week, kept with snapshot() before the new data was set. Press Next week to compare again.

Zoom, navigator and range selector

Two years of daily values with the range selector buttons and dates above, the navigator and the scrollbar below. Press a range button, drag the window in the navigator, or drag on the plot to zoom.

Drilldown

Click Europe: its countries open from drilldown.series. Click America: the level is loaded by drilldown.load (here a stub with a short delay instead of a server). The breadcrumbs lead back.

Real-time data

A new point every half second; the window keeps the last 120 points (realtime.maxPoints).

Data sources

The chart reads the HTML table above it (dataSource.table with watch: true). Click a number in the table and change it: the chart follows.

Large data

A line of 200 000 points drawn through WebGL (largeData.webgl) and downsampled to the visible window; the line under the chart is getRenderInfo(). Zoom in with the wheel: more detail appears. The library handles millions of points; the demo keeps the page light.

Editing points

Drag a column up or down (steps of 0.5 between 0 and 10), or focus the chart and use Shift+arrows. Undo and Redo (or Ctrl+Z / Ctrl+Y) step through the drags.

Maps

A choropleth of a small made-up country (its GeoJSON is in the code), with capitals as points and a route. Hover a region, scroll to zoom, drag to pan, double-click to reset; Zoom to North calls zoomToRegion().

Responsive rules

Move the slider to change the width of the chart: below 500 px the legend moves to the bottom, the x labels turn and the data labels are hidden.

Dashboards

KPI tiles, two charts and two filters from one configuration. Click a slice of the pie: the column chart and the KPIs show only that region (cross-filtering); change the product filter.

Export

The buttons download the chart as PNG, SVG (vectors), PDF (vectors), CSV and Excel files, open the print dialog, or show the data as an accessible table.

Rendering without a DOM

No chart component here: renderToSVG() returned an SVG string (shown as an image), the same call works in Node or a worker. Press New data to render it again.

Text to chart and explanations

Type a request (or pick one) and press Make chart: textToChart() builds the options with built-in rules, no model needed. The text under the chart is explain().

Theming and styling

Themes

Pick a theme in the list: light, dark, high-contrast and themes of the pack vibefox-js-themes.css (ocean, sunset, glass-dark, paper, graphite-dark).

CSS variables

Only CSS variables of this chart are changed: the accent and series colors, a larger font, dashed grid lines and rounded columns.

Ready-made styles and palettes

Pick a ready-made style (vivid, pastel, monochrome, dark, print) and a palette (also the ones safe for color blindness). Print and monochrome use hatches, dashes and marker shapes.

Density and size

Pick a density for the container (data-vfjs-density) and a size unit (--vfjs-size-unit): texts, paddings and markers follow.

Your own CSS

Plain CSS rules of the page restyle the legend and the title; they win over the library without !important because the library CSS is in @layer vfjs.

Localization and RTL

Languages

Switch the language between English and Russian (the language pack vibefox-js-charts.ru.js is loaded after the library): the range selector, the statistics lines, the month names of the time axis and the number format follow.

Adding a language

A partial German dictionary added with addLocale(): the range selector and the statistics lines use it, the month names come from the browser, the rest falls back to English.

Right-to-left

The option rtl: true: the title, the legend and the tooltip follow the right-to-left direction; the plot keeps x growing to the right.

Accessibility

Keyboard

The third point is focused from code (focusPoint()). Click the chart (or Tab to it) and use the arrow keys, Home / End, + / − to zoom, Enter to click a point.

Screen readers

The text under the chart is getSummary(), the description screen readers get. Speak summary announces it to a screen reader; Data table shows the data as an accessible HTML table.

Using with other VibeFox JS libraries

Connecting components with link()

Two charts joined with link(): zoom the upper chart (drag on its plot or use its navigator) and the lower chart shows the same range.

AI tools

Type a request such as "show as bar", "pie" or "title Revenue 2026" and press Ask. The model function here is a small stub that answers with a tool call; in your application it sends the request to your model. The log shows the tool calls.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle