Skip to content

v41.0.0

Choose a tag to compare

@nickofthyme nickofthyme released this 17 Dec 22:21

41.0.0 (2021-12-17)

Bug Fixes

  • replace createRef with useRef in Functional Components. (#1524) (6db2677)

Code Refactoring

  • goal: remove deprecated config (#1408) (312e31d)
  • partition: remove config in favor on spec and theme controls (#1402) (312e31d)
  • wordcloud: cleanup config, types and theming (#1407) (41894a6)
  • heatmap: dark mode with theme controls (#1406) (f29c8dd)

Features

BREAKING CHANGES

Partition spec - #1402

The PartitionSpec.config prop is removed. All properties have been moved/renamed under new Theme.partition options or PartitionSpec itself with the following exceptions:

  • PartitionSpec.config.margin is removed in favor of Theme.chartPaddings. This no longer supports ratios.
  • PartitionSpec.config.backgroundColor is removed in favor of Theme.background.color.
  • PartitionSpec.config.width and PartitionSpec.config.height both removed as they were never used.

Heatmap spec - #1406

The HeatmapSpec.config prop is removed. All properties have been moved/renamed under new Theme.heatmap options with the following exceptions:

  • HeatmapSpec.margin was not used, Theme.chartMargins should be used in the future.
  • HeatmapSpec.fontFamily HeatmapSpec.width and HeatmapSpec.height all removed as they were never used.

Wordcloud spec - #1407

The WorkcloudSpec.config prop is removed as it was not used other than assigning margins even with erroneous properties. All wordcloud properties are now driven from the WorkcloudSpec directly. Since the wordcloud is unique in that it's styles are driven by the data I think keeping them on the spec is more favorable than moving them to the theme as they would be overridden more frequently. This does not provide a themed instance of the chart type but this could possibly come from .brightening the provided colors of the text elements.

Goal spec - #1408

  • goal: The GoalSpec.config prop is removed. All properties have been moved/renamed under new Theme.goal options with the following exceptions:
  • Config.margin is now controlled by Theme.chartMargins and is no longer a margin ratio as before.
  • Config.backgroundColor is now controlled by Theme.background.color, even though it's not yet used.
  • fontFamily moved into each respective label styles
  • angleStart and angleEnd are moved onto the GoalSpec as optional values.
  • sectorLineWidth, width and height all removed as they were never used.