Skip to content

Releases

0.14.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 23:16
46448be

Added

  • Twenty more 3D charts in nervure/3d, thirty in all: area, stacked area, ribbons, surface, scatter, funnel and pyramid, globe with arcs and points, city of buildings, treemap, flows, radar, progress rings, pictorial shapes, candles, timeline, a wall of tiles and more. cdn/nervure.3d.min.js is 34.7 kB gzipped; the main file does not grow.
  • Theme charts, in their own entry nervure/themes (or cdn/nervure.themes.min.js after nervure.min.js, 52 kB gzipped): 43 charts for weather, nature, electricity, nuclear, oil and gas, transport, cars, real estate, financing, crypto, money and products, in 2D and 3D. Guide: Theme charts.
  • @nervure/icons 0.1.0, a new package (packages/icons): 134 animated SVG icons drawn by hand on a 24 grid, one colour or two, which draw themselves in and play a motion of their own on load, hover, click or loop, still for readers who ask for less motion. icon() and iconSvg(), one module per icon, <nv-icon>, React and Vue components, cdn/nervure-icons.min.js (13.3 kB gzipped) and static SVG files. Gallery at /icons/.

Changed

  • The PHP packages are renamed nervure/symfony (was benmacha/ux-nervure) and nervure/laravel (was benmacha/laravel-nervure), in the repositories nervurejs/symfony and nervurejs/laravel. The Symfony Stimulus controller is now nervure--symfony--chart and its assets @nervure/symfony: update assets/controllers.json and any event listener (nervure--symfony--chart:connect). The old packages are abandoned in favour of the new ones.

0.13.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 22:53
3aa90df

Changed

  • The project moved to the nervurejs organisation: https://github.com/nervurejs/nervure, with the PHP packages in nervurejs/ux-nervure and nervurejs/laravel-nervure (the old addresses redirect).
  • The website is now https://nervurejs.github.io, with the same paths; nervure.benmacha.tn redirects every page there. The package metadata on npm points to the new addresses.

0.13.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:18
e5d8712

Added

  • 3D charts, in their own entry nervure/3d (or cdn/nervure.3d.min.js after nervure.min.js, 14.5 kB gzipped; the main file does not grow): pie3d, donut3d, columns3d (shape: box | cylinder | cone | pyramid), stacked3d (percent), ribbon3d, surface3d (wireframe), scatter3d (drops), pyramid3d, funnel3d and map3d, drawn in SVG with light and shade from the palette. All take view: { azimuth, elevation }. With rotate: true a drag turns the view, and so do the arrow keys on the turn button; the chart is drawn again from the new eye. Tooltips, keyboard reading, legend, exports and nervure/lazy work as for every chart. A "3D" group in the gallery (bars3d moved into it, 230 entries, 209 types) and a guide page, /guide/3d, which also says when 3D is a bad idea.

0.12.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 20:21
46eec97

What Chart.js does and nervure did not: events on marks, a tooltip you control, legend options, plugins, stack groups, colours worked out from values, point shapes, richer axes, line segments, and more ways to animate.

Added

  • Events on marks: onClick and onHover render options receive the point under the pointer (chart type, series, stack, segment, label, value, index, item of the spec, colour, DOM event); onHover gets null when the pointer leaves. Enter on a mark reached with the keyboard calls onClick. Works on xy, pie, scatter, radar, heatmap, waterfall, treemap, pack, funnel and every chart with tooltips. Vue @click / @hover, React onClick / onHover, point-click / point-hover events on <nervure-chart>.
  • Tooltip: tooltip: false, or { format, html, position } for every chart; html gets an escape helper and loses scripts and event attributes. showTooltip(series, index), hideTooltip() and setActive(series, index) on the handle.
  • Legend: legend takes { position: 'top' | 'bottom' | 'left' | 'right', align, onClick } (return false to keep a series); pie and radar take legend too. legendItems() on the handle, to write a legend of your own with toggle().
  • Plugins: plugins render option and registerPlugin(), with beforeDraw, afterDraw and onDestroy, the plot area, the hole of round charts and two layers, under and above the chart. nervure/plugins ships plotAreaBorder, centerLabel and emptyState, outside the main bundle.
  • Stack groups on xy charts: stack on a series. With stacked, bars sharing a stack pile up and the stacks stand side by side in each category, with a space between them, vertical or horizontal; stacked: 'percent' fills 100 % stack by stack, totals writes one total by stack, and the keyboard says the stack.
  • Colours from values: color and colors of a series take (value, index, category) => colour (for example red below zero); pie charts take color: (value, index, name) => colour and scatter charts color: (y, index, label) => colour. The legend and the exports use the first colour worked out. From code only, not from JSON.
  • Point shapes: dots: { shape, size } with circle, square, triangle, diamond, cross, star or rect-rot, on line and area points, scatter points (shape), radar corners (dots) and in the legend. On lines cut into segments, points take the colour of their segment; dashed lines and dashed segments have no points.
  • radius (corner radius of the bars) and barWidth (share of a category taken by its bars) on xy charts.
  • Axes: suggestedMin, suggestedMax, step, ticks, tickFormat(value, index) and grid (false, or { dashed, color }) on each axis of xy charts; scatter and bubbles take xAxis and yAxis with the same options (log scale included) and center: true for axes crossing at zero. New type AxisScale.
  • Lines: gaps: 'break' | 'join' | 'zero' for missing values of lines, areas and bands (break stays the default); segments draw a stretch of a series another way (dashed, color, opacity, label), such as a forecast, with every curve, areas, zoom, keyboard reading and export.
  • Animation: named easings (linear, ease, ease-in, ease-out, ease-in-out, bounce, elastic), loop: true to replay the entrance, and line: 'trace' | 'grow' | 'draw' for how the lines of xy charts come in. Nothing moves or loops for readers who ask for less motion.
  • Guide pages Events, Tooltip, Legend, Plugins, Series and bars, Axes, and Lines, gaps and segments; gallery samples bar_stack_groups and line_points (216 entries).

Changed

  • A tap opens the tooltip on touch screens. radar, heatmap and waterfall are read mark by mark with the keyboard.
  • The shared core grew with events, tooltip control and plugins: one chart alone is now 13 to 15 kB gzipped (was 11 to 13), lines and bars 24 kB, the one-file build 178 kB (budget 180 kB).

0.11.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 14:55
634e4ef

Added

  • Mermaid import, nervure/mermaid: fromMermaid(text) turns Mermaid diagram text into a spec, and gives null for what it does not read, so an app can fall back to Mermaid. parseMermaid(text) also gives the kind of diagram and what was left out. Flowcharts, sequence diagrams, Gantt charts, timelines, mindmaps, pies, user journeys, quadrant charts, entity relationship diagrams, Kanban boards, XY charts and Sankey diagrams; front matter, fences, directives and comments are taken away. XY charts are read as assistants write them too: spaces between thousands, unquoted titles, one value per line, a missing xychart-beta header. In the browser: cdn/nervure.mermaid.min.js, loaded after cdn/nervure.min.js.
  • quadrant: xRange and yRange, the ends of the axes, so the lines between the zones cross at a known value.

Fixed

  • kanban: no negative card width when many columns share a narrow chart.

0.10.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 00:13
218fb29

Added

  • 63 new chart types and one new gallery entry: 214 charts and maps in all (199 types)
    • Health (new health family, 20): blood pressure, glucose, heart rate zones, BMI, growth percentiles, vaccines, medication, pain scale, mood, fever, oxygen saturation, steps, nutrition, cycle wheel, hospital wards, emergency triage, epidemic curve, dental chart, audiogram, lab panel
    • Places (new places family, 19): transit map, departures board, stadium, car park, warehouse, meeting rooms, queues, lifts, property card, neighbourhood flower, skyline, bus line, exhibition hall, marina, energy label, travel time rings, route steps, train crowding, train graph
    • Sport (new sport family, 18): shot map, pass network, touch map, basketball shots, tennis score and serves, swimming, track race, cycling stage, golf, running splits, match timeline, pizza, face-off, win probability, fight card, chess evaluation, medal table
    • Maps (6): flow, spike, dot density, hexbin, pin and pie maps; choropleth gallery entry for map

Changed

  • The browser one-file build no longer carries the made-up data and the dashboard templates: they are in cdn/nervure.samples.min.js, to load after cdn/nervure.min.js for nervure.sample() and nervure.template(). Imports from nervure/samples and nervure/templates are unchanged.
  • Budget of the one-file build: 180 kB gzipped (173 kB with 199 types).
  • The thresholds of the health charts (blood pressure, BMI, hearing loss, fertile window) are general display rules, not medical advice.

0.9.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 23:31
62e049d

Added

  • 47 new chart types and 4 new gallery entries: 150 charts and maps in all (136 types)
    • Distribution: density, cumulative distribution (ecdf), Q-Q plot, raincloud, Wilkinson dot plot, strip plot, density contours, regression with its confidence band, forecast fan; bubble chart sample
    • Comparison: diverging bars, range bars, barcode, Cleveland dot plot, circular bars, small multiples (facet), bubble matrix, scorecard, nested bars; 100 % stacked bars (stacked: 'percent' on xy)
    • Finance and time: point and figure, market depth, volume profile, drawdown, monthly returns, time spiral, Gantt with dependencies, milestones, 24-hour clock (new time family)
    • Flows and diagrams: alluvial, nested circle packing, adjacency matrix, tidy tree, swimlane, customer journey, pyramid, decision tree, roadmap, SWOT, work breakdown structure
    • Domains and maps: activity rings, battery, weather forecast, league table, sleep stages, elevation profile, seat map, moon phases, Dorling cartogram; bubble map and globe samples
  • Reading: linked cursors between charts (sync, syncZoom, also for dashboards), time axis on xy (xScale: 'time'), keyboard reading of every mark with a live region, data table beside a chart (table)
  • Dense scatter plots painted on a canvas (render: 'canvas' | 'auto'), with hover, click and export
  • nervure/render: any chart as an SVG string on a server, without a browser; toMarkdown(spec)
  • Markdown export (toMarkdown(), toolbar md) and Figma export (toSVG({ figma: true }), copyForFigma(), toolbar figma)
  • PHP packages: benmacha/ux-nervure (Symfony UX: Twig component, Stimulus controller, chart builder) and benmacha/laravel-nervure (Blade component, @nervureScripts, Livewire support)
  • Home page: the leaf of the logo, animated

Changed

  • The one-file build grows to 128 kB gzipped (budget 132 kB); one chart alone is 11 to 13 kB, with the new reading features in the core

0.8.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 21:08
8a1f3fb

Added

  • thin on lines, areas and bars: long series keep their peaks and dips with far fewer points
  • Kagi chart (kagi): a price line that turns only on a large enough move, thick above the last high, thin below the last low
  • Kanban board (kanban): columns of cards with tags, people and a limit of work per column
  • Shaded zones on lines and bars (zones): a period or a range of values
  • Progress bars: a mark (target) and a second line (detail) on each bar
  • Gauges: several marks (target: [100, 90]), and a figure that follows the size of the gauge (figureSize to set it)

Fixed

  • SVG export: the namespace was written twice in some engines, which gave a file other programs refused
  • Shares of pies, funnels and sunbursts no longer take the format of the values (no more "12,5 € %")
  • The marks of a gauge stay on its band and no longer cross the figure

0.7.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:57
379e098

Added

  • 13 charts by domain: pitch, circuit, tournament bracket, podium, ranking, bar race, body, organ, heartbeat, floor plan, building, table plan, parliament
  • Zoom and drag for any chart (zoom option), and for prices with axes drawn again
  • Dashboard templates by trade (nervure/templates): real estate, restaurant, sport, health, business, finance, education, logistics
  • True sizes on maps: equalEarth and gallPeters projections, area, areaOf
  • Animated picture in the readme

0.6.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:08
15d0ec8

Added

  • Figures that count and stop exactly (nervure/figure, <nervure-figure>, Figure in React, NervureFigure in Vue); the figures of kpi, gauge, liquid, speedometer, thermometer and progress count too
  • Formats by options: currencies, percentages, units, short numbers from a threshold with your letters
  • Comparisons with arrows: last year, a target, anything, in percent or in value

Changed

  • format takes a function or options