Skip to content

Remove d3-selection dependency #4

@thomaswilburn

Description

@thomaswilburn

d3-selection is confusing and difficult to use, and it's also a large dependency that gets added to almost every bundle. Our goal here is to rewrite these templates and eventually remove it completely. We can also take advantage of this to rewrite some of the templates to use newer HTML/CSS/JS features, such as flexbox or grid when that would simplify bar/column charts.

The current plan is to use Lit for rendering, but I'm open to other possibilities over time.

  • line chart - proof of concept rewrite in 53feff0
  • state grid map - fixed in d918a5b
  • bar chart - fixed in 485e912
  • table - updated in 3ca37ae
  • ai2html graphic - do we need this anymore? Possibly remove.
  • annotated line chart - base this on the line chart
  • block histogram - possible drop?
  • column chart - possible conversion to HTML flex/grid, and roll in the stacked variant
  • portrait pullquotes - possible drop?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions