Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@lightdash/visualization

Latest version: v3.449.5

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: charliedowler, jose-lightdash, light-irakli, owlas
6,260 Stars
812 Forks
1,220 Versions
134.5K Downloads
TypeScript Repo language

Scan summary

@lightdash/visualization was last scanned on 29 Nov 2026 at version 3.449.5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 1,220 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 3.449.5.
  • Downloads: 134,519 downloads.

Versions

1220 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.449.5 LATEST 29 Nov 2026 No rules fired
3.449.4 29 Nov 2026 No rules fired
3.449.3 29 Nov 2026 No rules fired
3.449.2 28 Nov 2026 Not shown
3.449.1 28 Nov 2026 Not shown

No rules fired in 3.449.5

Findings

Findings for v3.449.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.449.5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@lightdash/visualization

The headless Lightdash chart engine. It turns a saved chart's config and the results of its query into what a renderer needs: an ECharts option for bar, line, area, scatter, pie, funnel, treemap, gauge and sankey charts, a table model, a big number model, and the data for a custom (Vega) visualization.

No React, no Mantine, no DOM. The Lightdash frontend renders every chart through this package, so a headless caller (a data app, a server-side render, a desktop app) draws exactly what the web app draws.

Installing

npm install @lightdash/visualization @lightdash/common echarts

@lightdash/common must be the same version as @lightdash/visualization: both are released together from the Lightdash monorepo, and the engine reads the saved chart and field types from it. echarts (5.6 or later 5.x) is a peer dependency for its option types; the engine never imports it at run time, so a caller that only builds tables or big numbers does not load it.

Node 20 or later. Both import and require work from plain Node: they load the CommonJS build, which ESM callers can import by name. Bundlers that honour the module field or condition (Vite, webpack, Rollup, esbuild) get the ES module build instead. The types resolve under node16, nodenext and bundler module resolution.

Using it

A chart and its data go in; what to draw comes out.

import { renderChart, toResultRows } from '@lightdash/visualization';
import * as echarts from 'echarts';

const rendered = renderChart(
    savedChart, // chartConfig, pivotConfig, tableConfig: a SavedChart as it is
    {
        rows: toResultRows(rawRows, fields),
        fields, // keyed by field id: Lightdash items, or { fieldType, type, label, format }
        query: metricQuery, // optional: field order and sorts
        pivotDetails, // when the query was pivoted
    },
    { theme, colors: { palette }, size: { width, height } },
);

switch (rendered.kind) {
    case 'echarts':     echarts.init(el).setOption(rendered.option); break;
    case 'table':       rendered.model.columns; rendered.model.rows; break;
    case 'bigNumber':   rendered.model.value; rendered.model.comparison; break;
    case 'custom':      rendered.spec; rendered.data; break;
    case 'empty':       rendered.reason; break; // noRows, incompleteConfig, needsPivotDetails, needsPivotTable
    case 'unsupported': break; // maps and data-app visualizations
}
  • ChartView: what the chart is. A SavedChart satisfies it.
  • ChartData: everything it is drawn from, all of it data. Values that took further queries (totals, groupedSubtotals, pivotTable) are fields of it. The engine never runs a query: what it needs and is not given comes back as an empty reason.
  • RenderOptions: how to draw, never what. theme, colors, size, animation, tooltip, legendSelection, parameters.
  • RenderedChart: the output, plus colorAssignments. Pass those back as colors.assignments to the next chart on the page, and the same group value keeps its colour. They are plain data: keep them, send them, compare them.

renderChart is resolveChart then buildChart. Call them apart to keep the resolved chart: its config is the saved config with defaults filled and stale fields repaired, the same config the explorer's editor settles on.

Entry points

  • @lightdash/visualization: the API above. Stable.
  • @lightdash/visualization/editor: the per-type helpers the Lightdash explorer's editor calls to offer, repair and default a config. Internal to Lightdash; it changes with the explorer.

Layout

  • render.ts: resolveChart, buildChart, renderChart and their types.
  • chartData.ts: ChartView, ChartData, and how they become the builders' inputs.
  • types.ts: VisualizationResults, the structural subset of the frontend's query results the builders read, and the inputs every builder shares.
  • theme.ts: VisualizationTheme and the light and dark defaults. Plain hex values, so options rasterise without a stylesheet.
  • colors/: series identifiers, colour assignments, the colour resolver.
  • pivot/, merge/: pivoted results and merged-query helpers.
  • One folder per chart type: config.ts (the resolver and the pure helpers the frontend's editor hook calls) and echartsOption.ts (the builder).

Working on it

The frontend hooks under packages/frontend/src/hooks/echarts and the use<Type>ChartConfig hooks are thin wrappers over this package; the editor state stays in the frontend. Keep a change here behaviour-neutral for the frontend, or change both together.

pnpm -F visualization build      # dist/esm, dist/cjs, dist/types
pnpm -F visualization test
pnpm -F visualization lint
pnpm -F visualization typecheck
pnpm -F visualization test:pack   # after build: pack, install outside the repo, import from Node and tsc

The unit tests also typecheck every ts sample in this README against the source.

In development the frontend resolves the package from src through a Vite alias, and pnpm dev runs a visualization-watch build for the backend and the SDK bundle.

Browser tests

browser/ draws every chart type through renderChart into real ECharts instances in Chromium, and Playwright asserts on what the browser produces: series marks, axis labels, legends, the tooltip HTML, the big number and table models, and the dark theme's colours. The report carries a gallery of every type in both themes.

pnpm -F visualization exec playwright install chromium   # once
pnpm -F visualization test:browser

The unit tests check the options the engine builds; the browser tests check that a browser draws them.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @lightdash/visualization

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229