Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 13, 2023

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.

@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch 3 times, most recently from a9842b1 to 23d1f20 Compare June 18, 2023 10:45
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.8 fix(deps): update dependency @observablehq/plot to v0.6.9 Jun 28, 2023
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 23d1f20 to 598a18b Compare June 28, 2023 00:56
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 598a18b to 476cf3a Compare August 9, 2023 14:27
@coveralls
Copy link

coveralls commented Aug 9, 2023

Coverage Status

coverage: 94.441%. remained the same
when pulling 1f598f4 on renovate/observablehq-plot-0.x-lockfile
into 279e4ee on master.

@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.9 fix(deps): update dependency @observablehq/plot to v0.6.10 Aug 15, 2023
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 476cf3a to 9ea102d Compare August 15, 2023 19:09
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.10 fix(deps): update dependency @observablehq/plot to v0.6.11 Sep 20, 2023
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 9ea102d to b922592 Compare September 20, 2023 18:07
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from b922592 to 2bc3c08 Compare December 8, 2023 03:45
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.11 fix(deps): update dependency @observablehq/plot to v0.6.12 Dec 8, 2023
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 2bc3c08 to e48f8ee Compare December 13, 2023 19:09
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.12 fix(deps): update dependency @observablehq/plot to v0.6.13 Dec 13, 2023
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from e48f8ee to f0a5808 Compare December 26, 2023 04:59
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch 2 times, most recently from 9333058 to 7b3fbc4 Compare February 4, 2024 09:33
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 7b3fbc4 to d33a020 Compare February 25, 2024 11:07
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from d33a020 to e0f4750 Compare March 3, 2024 17:30
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from e0f4750 to 1f598f4 Compare March 12, 2024 11:22
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.13 fix(deps): update dependency @observablehq/plot to v0.6.14 Mar 13, 2024
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 1f598f4 to 2618dff Compare March 13, 2024 01:05
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 2618dff to 58339f4 Compare May 24, 2024 03:10
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 58339f4 to 0903d13 Compare June 11, 2024 19:34
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.14 fix(deps): update dependency @observablehq/plot to v0.6.15 Jun 11, 2024
@renovate renovate bot force-pushed the renovate/observablehq-plot-0.x-lockfile branch from 0903d13 to 7a0d830 Compare August 6, 2024 20:09
@renovate renovate bot changed the title fix(deps): update dependency @observablehq/plot to v0.6.15 fix(deps): update dependency @observablehq/plot to v0.6.16 Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant