2.0.22 • Published 1 year ago

@thematic/d3 v2.0.22

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

This package provides a variety of helpers for applying Thematic to visualizations based on D3.

D3's general programming model is to use function chaining to update selections. We provide a variety of applicator functions that work directly with the D3 selection.call mechanism to apply theme parameters to the selection items.

For example, you may want to apply the core chart properties to your root svg:

import { chart} from '@thematic/d3'
...
const svg = select('svg').call(chart as any, theme)

This example selects the svg DOM element, then passes the chart applicator function to the selection.call method, along with the theme instance as a parameter. Thematic will then read the chart properties from the theme, such as border and background color properties, and apply them to the svg as stroke and fill attributes.

We can do this with any selection, and Thematic provides applicator functions for both the core svg primitives (e.g., rect, circle, line, etc.), as well as higher-level charting components and semantics such as chart, plotArea, and axis.

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.18

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.14

2 years ago

2.0.13

2 years ago

2.0.11

2 years ago

2.0.12

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.5

2 years ago

2.0.6

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.3.0

2 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

0.9.0

4 years ago

0.8.0

4 years ago