You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Document gap support for null/NaN/Infinity values
- Add section for fillInvert style option (PR borisyankov#113)
- Add section for SparklinesInteractiveLayer component (PR borisyankov#119)
- Standardize all code examples with proper JSX syntax and function wrappers
- Improve formatting with bold property names
Sparklines component is a container with the following properties:
43
43
44
-
data - the data set used to build the sparkline
44
+
**data** - the data set used to build the sparkline. Invalid values (null, NaN, Infinity, undefined) are supported and will create gaps in the visualization.
45
45
46
-
limit - optional, how many data points to display at once
46
+
**limit** - optional, how many data points to display at once
47
47
48
-
width, height - dimensions of the generated sparkline in the SVG viewbox. This will be automatically scaled (i.e. responsive) inside the parent container by default.
48
+
**width, height** - dimensions of the generated sparkline in the SVG viewbox. This will be automatically scaled (i.e. responsive) inside the parent container by default.
49
49
50
-
svgWidth, svgHeight - If you want absolute dimensions instead of a responsive component set these attributes.
50
+
**svgWidth, svgHeight** - If you want absolute dimensions instead of a responsive component set these attributes.
51
51
52
-
[preserveAspectRatio](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio) - default: 'none', set this to modify how the sparkline should scale
52
+
**[preserveAspectRatio](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/preserveAspectRatio)** - default: 'none', set this to modify how the sparkline should scale
0 commit comments