@fundar/data-chart-telling 1.8.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/configuration/config.svelte.js +3 -5
  3. package/dist/layout/interaction/PlotInteraction.svelte.js +1 -1
  4. package/dist/layout/legend/ContinuousSection.svelte +90 -21
  5. package/dist/layout/legend/DisabledStyle.d.ts +1 -1
  6. package/dist/layout/legend/DisabledStyle.js +9 -9
  7. package/dist/layout/styles/BasicStyles.d.ts +13 -0
  8. package/dist/layout/styles/BasicStyles.js +31 -0
  9. package/dist/markers/arrow/ArrowMarker.svelte +2 -0
  10. package/dist/markers/rule/RuleMarker.svelte +2 -0
  11. package/dist/phases/data/DataPhase.js +5 -1
  12. package/dist/phases/transforms/TransformsPhase.js +2 -2
  13. package/dist/plots/correlation/heatmap/defaults.js +1 -1
  14. package/dist/plots/correlation/heatmap/markers.js +5 -1
  15. package/dist/plots/correlation/scatter/defaults.js +2 -1
  16. package/dist/plots/distribution/box/defaults.js +5 -1
  17. package/dist/plots/distribution/box/markers.js +9 -2
  18. package/dist/plots/distribution/density/defaults.js +7 -1
  19. package/dist/plots/distribution/density/markers.js +4 -0
  20. package/dist/plots/distribution/histogram/defaults.js +7 -1
  21. package/dist/plots/distribution/histogram/markers.js +10 -2
  22. package/dist/plots/distribution/pyramid/defaults.js +5 -1
  23. package/dist/plots/distribution/pyramid/markers.js +10 -1
  24. package/dist/plots/distribution/violin/defaults.js +5 -1
  25. package/dist/plots/distribution/violin/markers.js +4 -0
  26. package/dist/plots/evolution/area/defaults.js +3 -1
  27. package/dist/plots/evolution/area/markers.js +18 -9
  28. package/dist/plots/evolution/line/defaults.js +6 -1
  29. package/dist/plots/evolution/line/markers.d.ts +2 -2
  30. package/dist/plots/evolution/line/markers.js +5 -5
  31. package/dist/plots/evolution/slope/markers.js +1 -1
  32. package/dist/plots/ranking/bar/defaults.js +5 -1
  33. package/dist/plots/ranking/bar/markers.js +10 -2
  34. package/dist/plots/ranking/cleveland/ClevelandMarkers.js +37 -12
  35. package/dist/plots/ranking/cleveland/defaults.js +4 -2
  36. package/dist/plots/utils/segments.d.ts +3 -1
  37. package/dist/plots/utils/segments.js +40 -19
  38. package/dist/types/configuration/styling.d.ts +5 -7
  39. package/dist/types/layout/legend.d.ts +1 -1
  40. package/dist/types/layout/styles/base.d.ts +27 -1
  41. package/dist/types/phases/data/phase.d.ts +3 -0
  42. package/dist/types/phases/state.d.ts +2 -0
  43. package/dist/types/phases/transforms/phase.d.ts +2 -0
  44. package/dist/types/plots/segments/common.d.ts +2 -2
  45. package/docs/plots/ranking/dumbbell.md +1 -1
  46. package/docs/plots/ranking/lollipop.md +1 -1
  47. package/docs/styles-and-segments.md +32 -2
  48. package/docs/theming.md +28 -29
  49. package/examples/SegmentsBySeries.svelte +1 -1
  50. package/package.json +1 -1
package/docs/theming.md CHANGED
@@ -124,35 +124,34 @@ The text blocks map `title`, `subtitle` and `caption` to `--dct-{block}-{font|si
124
124
 
125
125
  ### legend
126
126
 
127
- | CSS variable | Config path |
128
- | --------------------------------------- | ---------------------------------------- |
129
- | `--dct-legend-font` | `legend.font` |
130
- | `--dct-legend-size` | `legend.size` |
131
- | `--dct-legend-weight` | `legend.weight` |
132
- | `--dct-legend-color` | `legend.color` |
133
- | `--dct-legend-title-size` | `legend.titleSize` |
134
- | `--dct-legend-title-weight` | `legend.titleWeight` |
135
- | `--dct-legend-gap` | `legend.gap` |
136
- | `--dct-legend-swatch` | `legend.swatchSize` |
137
- | `--dct-legend-size-gap` | `legend.sizeScale.gap` |
138
- | `--dct-legend-nav-bg` | `legend.navButton.background` |
139
- | `--dct-legend-nav-color` | `legend.navButton.color` |
140
- | `--dct-legend-nav-size` | `legend.navButton.size` |
141
- | `--dct-legend-nav-font-size` | `legend.navButton.fontSize` |
142
- | `--dct-legend-nav-disabled-opacity` | `legend.navButton.disabledOpacity` |
143
- | `--dct-continuous-handle-width` | `legend.continuous.handle.width` |
144
- | `--dct-continuous-handle-height` | `legend.continuous.handle.height` |
145
- | `--dct-continuous-handle-radius` | `legend.continuous.handle.radius` |
146
- | `--dct-continuous-handle-fill` | `legend.continuous.handle.fill` |
147
- | `--dct-continuous-handle-stroke` | `legend.continuous.handle.stroke` |
148
- | `--dct-continuous-handle-stroke-width` | `legend.continuous.handle.strokeWidth` |
149
- | `--dct-continuous-tick-color` | `legend.continuous.tick.color` |
150
- | `--dct-continuous-tick-width` | `legend.continuous.tick.width` |
151
- | `--dct-continuous-tick-length` | `legend.continuous.tick.length` |
152
- | `--dct-continuous-label-rotate` | `legend.continuous.label.rotate` |
153
- | `--dct-continuous-label-size` | `legend.continuous.label.size` |
154
- | `--dct-continuous-label-weight` | `legend.continuous.label.weight` |
155
- | `--dct-continuous-label-overlap-rotate` | `legend.continuous.label.overlap.rotate` |
127
+ | CSS variable | Config path |
128
+ | -------------------------------------- | -------------------------------------- |
129
+ | `--dct-legend-font` | `legend.font` |
130
+ | `--dct-legend-size` | `legend.size` |
131
+ | `--dct-legend-weight` | `legend.weight` |
132
+ | `--dct-legend-color` | `legend.color` |
133
+ | `--dct-legend-title-size` | `legend.titleSize` |
134
+ | `--dct-legend-title-weight` | `legend.titleWeight` |
135
+ | `--dct-legend-gap` | `legend.gap` |
136
+ | `--dct-legend-swatch` | `legend.swatchSize` |
137
+ | `--dct-legend-size-gap` | `legend.sizeScale.gap` |
138
+ | `--dct-legend-nav-bg` | `legend.navButton.background` |
139
+ | `--dct-legend-nav-color` | `legend.navButton.color` |
140
+ | `--dct-legend-nav-size` | `legend.navButton.size` |
141
+ | `--dct-legend-nav-font-size` | `legend.navButton.fontSize` |
142
+ | `--dct-legend-nav-disabled-opacity` | `legend.navButton.disabledOpacity` |
143
+ | `--dct-continuous-handle-width` | `legend.continuous.handle.width` |
144
+ | `--dct-continuous-handle-height` | `legend.continuous.handle.height` |
145
+ | `--dct-continuous-handle-radius` | `legend.continuous.handle.radius` |
146
+ | `--dct-continuous-handle-fill` | `legend.continuous.handle.fill` |
147
+ | `--dct-continuous-handle-stroke` | `legend.continuous.handle.stroke` |
148
+ | `--dct-continuous-handle-stroke-width` | `legend.continuous.handle.strokeWidth` |
149
+ | `--dct-continuous-tick-color` | `legend.continuous.tick.color` |
150
+ | `--dct-continuous-tick-width` | `legend.continuous.tick.width` |
151
+ | `--dct-continuous-tick-length` | `legend.continuous.tick.length` |
152
+ | `--dct-continuous-label-rotate` | `legend.continuous.label.rotate` |
153
+ | `--dct-continuous-label-size` | `legend.continuous.label.size` |
154
+ | `--dct-continuous-label-weight` | `legend.continuous.label.weight` |
156
155
 
157
156
  ### axis
158
157
 
@@ -18,7 +18,7 @@
18
18
  default: [
19
19
  {
20
20
  areas: [{ x: { from: 1965, to: 1980 } }],
21
- styles: { dots: { dotRadius: 5, dotSymbol: 'circle' } }
21
+ styles: { dot: { dotRadius: 5, dotSymbol: 'circle' } }
22
22
  }
23
23
  ]
24
24
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundar/data-chart-telling",
3
- "version": "1.8.1",
3
+ "version": "1.10.0",
4
4
  "description": "Declarative charts, maps and small multiples for Svelte, built on svelteplot.",
5
5
  "license": "MIT",
6
6
  "author": "Ezequiel Puerta",