Skip to content

layerchart@2.0.0-next.53

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Apr 15:42
· 0 commits to main since this release
93e3b09

Minor Changes

  • feat: Support pre-projected topologies in GeoLegend via referenceScale (#449)

    Add a referenceScale prop to GeoLegend for charts that render pre-projected data with geoIdentity (e.g. us-atlas's counties-albers-10m / states-albers-10m, pre-projected with geoAlbersUsa().scale(1300)). When provided, pixels-per-distance is derived from the chart's fit scale and the supplied base scale, bypassing the projection.invert + geoDistance path which only works for real lon/lat projections. The GeoPath bubble-map example now renders a correct scale bar.