Repository navigation
v0.10.0 - the 1.0 API review: set() only, bar { category, value }, sizing, named formats, 24-hour ticks
Latestv0.10.0 -- the 1.0 API review: set() only, bar { category, value }, sizing, named formats, 24-hour ticks
Internal release, not published to npm. The first published release will be 1.0.0,
after this one has run live for a while. Every Changed and Removed item breaks 0.9.0 code.
Changed
- set() is the only way to change a chart; the graph and its x/y/color are sealed, and
assigning any key throws naming the set() call. Internals moved to graph._. - $svg is the , $plot the margin-shifted , $marks the marks layer.
- update(data, domains); x.type instead of x.scale; d3.easygraph.bar instead of bars.
- A bar is { category, value }; categories are the union of all series, stacked by category.
- sizing: 'fluid' | 'scaled' (width only with 'scaled'); scatter zoomScale(k) replaces rescale(k).
- syncZoom/syncCrosshair return a function that undoes the link; the zoom event is { transform, x }.
- palette(name, { classes, reverse }), palettes, colorScale({ ... }); presets renamed to
quantity + unit; convert is not a config key. - tickFormat 'multi' is gone; a time axis ticks on a 24-hour clock; formatNumber is module-level.
- scatter points: false draws no circles; bands: true draws both bands.
Added
- d3.easygraph.formats: date, datetime, date-short, datetime-short, extensible.
- crosshair: { format: { x, y } }, taking what tickFormat takes.
- Presets: windSpeedKnots, visibilityKm/Mi, distanceCm/In, illuminance, co2, pm25, pm10,
soilMoisture, uvIndex, signalStrength, electricEnergy.
Removed
- round, compassPoint16/8/4, hueWheelPalette, color.preset.
Fixed
- The crosshair tooltip formats its values; a heatmap null cell is drawn empty.
Docs
- CHANGELOG has one block per version, the net change from the version before.