
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
nuxt-model-graphs
Advanced tools
Schema-driven charting for Nuxt 4, powered by ECharts. Define dimensions and measures once, pick a graph kind, and let the renderer derive the right series/axes (including 3D) with shared, typed models.
Schema-driven charting for Nuxt 4, powered by ECharts. Define dimensions and measures once, pick a graph kind, and let the renderer derive the right series/axes (including 3D) with shared, typed models.
ChartSchema, ChartSelection, GraphKind, etc.) exposed via #chart<ChartRenderer> that converts raw rows into the right series for line, bar, area, scatter, bar3d, or matrix heatmaps<VChart> pluginuseChartExplorer composable for UI-driven dimension/measure selectiongraphs.defaultHeight) to control default renderer heightpnpm add https://github.com/global-maxima/nuxt-model-graphs.git
# or npm / yarn equivalent
Enable the module:
export default defineNuxtConfig({
modules: ['nuxt-model-graphs'],
graphs: {
defaultHeight: 256, // optional override
},
})
<script setup lang="ts">
import type { ChartSchema, ChartSelection, DataRow, GraphKind } from '#chart'
type Dim = 'month' | 'channel'
type Mea = 'revenue'
const schema: ChartSchema<Dim, Mea> = {
dimensions: [
{ id: 'month', label: 'Month' },
{ id: 'channel', label: 'Channel' },
],
measures: [{ id: 'revenue', label: 'Revenue' }],
}
const selection: ChartSelection<Dim, Mea> = {
dimensions: ['month', 'channel'],
measures: ['revenue'],
}
const data: DataRow<Dim, Mea>[] = [
{ month: 'Jan', channel: 'Web', revenue: 120 },
{ month: 'Jan', channel: 'Retail', revenue: 80 },
]
const graphKind: GraphKind = 'bar'
</script>
<template>
<ChartRenderer
:data="data"
:schema="schema"
:selection="selection"
:graph-kind="graphKind"
:encoding="{ showLegend: true }"
/>
</template>
Components (<LineGraph>, <BarGraph>, <ScatterPlot>, <BarGraph3D>, <MatrixGraph>) remain available if you want to pass pre-built chartData, but <ChartRenderer> is the primary entry point.
const explorer = useChartExplorer(schema, {
defaultDimensions: ['month'],
defaultMeasures: ['revenue'],
defaultGraphKind: 'line',
})
// explorer.selection, explorer.graphKind, explorer.availableGraphKinds, etc.
Bind explorer.selection and explorer.graphKind to <ChartRenderer> for a lightweight chart explorer UI.
pnpm i
pnpm dev
MIT
FAQs
Schema-driven charting for Nuxt 4, powered by ECharts. Define dimensions and measures once, pick a graph kind, and let the renderer derive the right series/axes (including 3D) with shared, typed models.
We found that nuxt-model-graphs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.