Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix(deps): update dependency @observablehq/plot to v0.6.16 #539

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Aug 10, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@observablehq/plot 0.6.6 -> 0.6.16 age adoption passing confidence

Release Notes

observablehq/plot (@​observablehq/plot)

v0.6.16

Compare Source

Released August 6, 2024.

The new waffle mark 🧇 displays a quantity (or quantitative extent) for a given category; unlike a bar, a waffle is subdivided into cells that allow easier counting, making waffles useful for reading and comparing exact quantities. Plot’s waffle mark is highly configurable: it supports stacking, positive and negative values, rounded corners, partial cells for fractional counts, automatic row or column size determination (with optional override), and more!

a waffle chart of Olympic athletes by weight

Plot.plot({
  fx: {interval: 10},
  color: {legend: true},
  marks: [Plot.waffleY(olympians, Plot.groupZ({y: "count"}, {fill: "sex", sort: "sex", fx: "weight", unit: 10}))]
})

All marks now support GeoJSON data and GeoJSON property shorthand, making it easier to work with GeoJSON. For example, below the data counties is a GeoJSON FeatureCollection, and unemployment refers to a property on each feature; the fill option is thus shorthand for (d) => d.properties.unemployment. The geo mark now also supports the tip option (via an implicit centroid transform), making it easier to use Plot’s interactive tooltips.

a choropleth map of unemployment by U.S. county

Plot.plot({
  projection: "albers-usa",
  color: {
    type: "quantile",
    n: 9,
    scheme: "blues",
    label: "Unemployment (%)",
    legend: true
  },
  marks: [
    Plot.geo(counties, {
      fill: "unemployment",
      title: (d) => `${d.properties.name} ${d.properties.unemployment}%`,
      tip: true
    })
  ]
})

All marks now also support column name channel shorthand when using Apache Arrow tables as data, and we’ve added detection of Arrow date-type columns. (Arrow represents temporal data using BigInt rather than Date.)

Plot.dot(gistemp, {x: "Date", y: "Anomaly"}).plot() // gistemp is an Arrow Table!

The rect-like marks (rect, bar, cell, and frame) now support individual rounding options for each side (rx1, ry1, etc.) and corner (rx1y1, rx2y1, etc.). This allows you to round just the top side of rects. You can even use a negative corner radius on the bottom side for seamless stacking, as in the histogram of Olympic athletes below.

a histogram of Olympic athletes by weight

Plot.plot({
  color: {legend: true},
  marks: [
    Plot.rectY(olympians, Plot.binX({y: "count"}, {x: "weight", fill: "sex", ry2: 4, ry1: -4, clip: "frame"})),
    Plot.ruleY([0])
  ]
})

Plot now respects the projection domain when determining the default plot height. Previously, the map below would use a default square aspect ratio for the conic-conformal projection regardless of the specified domain, but now the map is perfectly sized to fit North Carolina. (Plot also now chooses a smarter default plot height when the ordinal y scale domain is empty.)

an unlabeled map showing the outline and counties of North Carolina
Plot.plot({
  projection: {.
    type: "conic-conformal",
    parallels: [34 + 20 / 60, 36 + 10 / 60],
    rotate: [79, 0],
    domain: state
  },
  marks: [
    Plot.geo(counties, {strokeOpacity: 0.2}),
    Plot.geo(state)
  ]
})

The marker options now render as intended on marks with varying aesthetics, such as the spiraling arrows of varying thickness and color below.

several spiraling lines emanate from the center of the image, with rainbow color and increasing thickness, each capped with a pointed arrow at the end
Plot.plot({
  inset: 40,
  axis: null,
  marks: [
    Plot.line(d3.range(400), {
      x: (i) => i * Math.sin(i / 100 + ((i % 5) * 2 * Math.PI) / 5),
      y: (i) => i * Math.cos(i / 100 + ((i % 5) * 2 * Math.PI) / 5),
      z: (i) => i % 5,
      stroke: (i) => -i,
      strokeWidth: (i) => i ** 1.1 / 100,
      markerEnd: "arrow"
    })
  ]
})

This release includes a few more new features, bug fixes, and improvements:

The new className mark option specifies an optional class attribute for rendered marks, allowing styling of marks via external stylesheets or easier selection via JavaScript; thanks, @​RLesser! Plot now reuses clipPath elements, when possible, when the clip mark option is set to frame or projection.

The difference mark now supports a horizontal orientation via differenceX, and the shift transform now likewise supports shiftY. The Voronoi mark is now compatible with the pointer transform: only the pointed Voronoi cell is rendered; the Voronoi mark now also renders as intended with non-exclusive facets (as when using the exclude facet mode). The tip mark no longer displays channels containing literal color values by default.

v0.6.15

Compare Source

Released June 11, 2024.

v0.6.14

Compare Source

Released March 12, 2024.

Changes the default categorical color scheme to Observable10.

The group transform now preserves the input order of groups by default, making it easier to sort groups by using the sort option. The group and bin transforms now support the z reducer.

Improves the accessibility of axes by hidding tick marks and grid lines from the accessibility tree.

Upgrades D3 to 7.9.0.


For earlier changes, continue to the 2023 CHANGELOG.

v0.6.13

Compare Source

Please see the 0.6.13 release notes for more.

  • Reduce the specificity of generated stylesheets to 0. #​1941 Thanks, @​mstade! 🙏
  • Fix the order of the observable10 scheme. #​1947

v0.6.12

Compare Source

Please see the 0.6.12 release notes for more!

Breaking

  • The default plot background is now unset (transparent) instead of white. #​1489

Features

Bug fixes

v0.6.11

Compare Source

Please see the 0.6.11 release notes for more!

Features

  • The tip mark option can now pass options to the derived tip mark. #​1823
  • The new format tip mark option enables greater control over order and formatting of channels. #​1823
  • Axes for ordinal scales now generalize the scale’s temporal or quantitative interval if any. #​1790
  • A channel value can now be given a label by specifying it as a {value, label} object. #​1838
  • Plot now supports CSS Color Module Level 4 and Level 5 syntax. #​1454

Bug fixes

  • Exposed ordinal scale domains are now correctly deduplicated. #​1813
  • The default symbol set is now inferred correctly when fill is currentColor. #​1830
  • The stack transform now correctly handles the exclude facet option. #​1649
  • The tip mark is no longer briefly visible before asynchronous rendering. #​1826
  • The bin transform now uses the interval option to reduce x1 & x2 (and y1 & y2). #​1828
  • The fontVariant axis option now applies to the axis label in addition to ticks. #​1827
  • The bin transform no longer generates undefined colors for empty bins. #​1837
  • The tree transform now correctly handles escaping with the delimiter option. #​1850

v0.6.10

Compare Source

Please see the 0.6.10 release notes for more!

v0.6.9

Compare Source

Please see the 0.6.9 release notes for more!

  • Time axes now default to multi-line ticks for better readability. 🎉 #​1718 #​1728
  • Easier piecewise scale construction. #​1715
  • Apply pointer-events: none to tips when the pointer transform is not sticky. #​1697
  • Add textLayout option to the tree mark, with mirrored labels by default. #​1610
  • Don’t filter the href, ariaLabel, and title channels by default. #​1699
  • Fix duplicate tips with the tree mark’s tip option. #​1726
  • Fix the axis mark’s sort, filter, reverse, and initializer options. #​1665
  • Fix the auto mark when both dimensions are ordinal and the mark option is bar. #​1674
  • Fix a regression in the window transform’s median, percentile, and related reducers. #​1691
  • Fix barycentric interpolation outside the convex hull of samples. #​1701
  • Fix non-faceted pointer transforms in faceted plots. #​1713

v0.6.8

Compare Source

Please see the 0.6.8 release notes for more!

  • The x and y scale default domains now incorporate geometry. #​1468
  • The stack transform’s order option now accepts a comparator. #​1195 #​1642
  • The stack transform’s order option now supports -order descending shorthand. #​1642 #​1613
  • Fix color legends when the domain or range has extra elements, and issue a warning. #​1633 #​1632
  • Fix the default stroke with the hexbin transform when used with the tip mark. #​1641
  • Fix duplicate application of scale transforms with the tip mark option. #​1645
  • Fix erroneous implicit title channel with the tip mark option. #​1658 #​1657
  • Fix spurious high-cardinality warning with an odd number of elements. #​1668

v0.6.7

Compare Source

Please see the 0.6.7 release notes for more!

  • Add pointer interaction for pointing at data.
  • Add tip mark for annotations and revealing details-on-demand when pointing.
  • Add crosshair mark for showing position values when pointing.
  • Add tip mark option for deriving a tip mark with pointer interaction.
  • Add -channel descending shorthand syntax for the sort mark option (e.g., sort y by -x).
  • Add shorthand for time interval multiples such as 3 months or 10 years.
  • Add imageFilter mark option for applying CSS image filters.
  • Add marker options to the rule and tick marks.
  • Add labelArrow option to control axis label directional arrows (↑, →, ↓, ←).
  • Add support for the interval scale option to the group, bin, and stack transforms.
  • Add support for index-aware reducers to the normalize and window transforms.
  • Add support for index-aware map methods to the map transform.
  • Add identity position defaults to the mapX and mapY transforms.
  • Add support for abstract (scaled) values when specifying a frame or hexgrid’s options.
  • Add render mark option for render transforms.
  • Change the default tickFormat for ordinal scales with yearly intervals.
  • Change the label scale option to add an implicit directional arrow by default.
  • Change the auto mark to set tip to true.
  • Change the default color scale type to categorical when given a categorical scheme.
  • Fix automatic opt-out of the opacity scale for the opacity channel.
  • Fix crash when an invalid CSS color string is specified for a frame’s fill or stroke.
  • Fix position defaults for the rectX, rectY, barX, and barY marks.
  • Fix facet filtering and anchors when facet domains contain non-primitive values.
  • Fix auto mark to chose correctly between variants of rect, line, and area marks.
  • Fix z-order of marks across facets.
  • Fix z-order of facet axes.

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@x-way x-way closed this Aug 14, 2024
Copy link
Author

renovate bot commented Aug 14, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (^0.6.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/observablehq-plot-0.x-lockfile branch August 14, 2024 03:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant