@cfasim-ui/charts 0.7.8 → 0.8.1

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 (67) hide show
  1. package/dist/BarChart/BarChart.d.ts +9 -26
  2. package/dist/ChartMenu/ChartMenu.d.ts +3 -2
  3. package/dist/ChartTooltip/ChartTooltip.d.ts +9 -12
  4. package/dist/ChoroplethMap/ChoroplethMap.d.ts +42 -190
  5. package/dist/ChoroplethMap/ChoroplethTooltip.d.ts +20 -27
  6. package/dist/ChoroplethMap/canvasLayer.d.ts +23 -6
  7. package/dist/ChoroplethMap/cityLayout.d.ts +3 -2
  8. package/dist/ChoroplethMap/mixedGeo.d.ts +74 -0
  9. package/dist/ChoroplethMap/mixedGeo.test.d.ts +1 -0
  10. package/dist/DataTable/DataTable.d.ts +3 -2
  11. package/dist/LineChart/LineChart.d.ts +9 -26
  12. package/dist/_shared/ChartAnnotations.d.ts +3 -2
  13. package/dist/_shared/ChartZoomControls.d.ts +3 -2
  14. package/dist/_shared/index.d.ts +2 -1
  15. package/dist/_shared/mapTheme.d.ts +159 -0
  16. package/dist/_shared/mapTheme.test.d.ts +1 -0
  17. package/dist/index.css +1 -1
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +1821 -1462
  20. package/docs/BarChart.md +776 -0
  21. package/docs/ChoroplethMap.md +1394 -0
  22. package/docs/DataTable.md +386 -0
  23. package/docs/LineChart.md +1267 -0
  24. package/docs/index.json +56 -0
  25. package/package.json +25 -21
  26. package/src/BarChart/BarChart.md +743 -0
  27. package/src/BarChart/BarChart.vue +1901 -0
  28. package/src/ChartMenu/ChartMenu.vue +220 -0
  29. package/src/ChartMenu/download.ts +120 -0
  30. package/src/ChartTooltip/ChartTooltip.vue +97 -0
  31. package/src/ChoroplethMap/ChoroplethMap.md +1354 -0
  32. package/src/ChoroplethMap/ChoroplethMap.vue +3778 -0
  33. package/src/ChoroplethMap/ChoroplethTooltip.vue +103 -0
  34. package/src/ChoroplethMap/canvasLayer.ts +373 -0
  35. package/src/ChoroplethMap/cityLayout.ts +262 -0
  36. package/src/ChoroplethMap/hsaMapping.ts +4116 -0
  37. package/src/ChoroplethMap/mixedGeo.ts +201 -0
  38. package/src/DataTable/DataTable.md +372 -0
  39. package/src/DataTable/DataTable.vue +406 -0
  40. package/src/LineChart/LineChart.md +1225 -0
  41. package/src/LineChart/LineChart.vue +1555 -0
  42. package/src/_shared/ChartAnnotations.vue +420 -0
  43. package/src/_shared/ChartZoomControls.vue +138 -0
  44. package/src/_shared/annotations.ts +106 -0
  45. package/src/_shared/axes.ts +69 -0
  46. package/src/_shared/chartProps.ts +201 -0
  47. package/src/_shared/computeTicks.ts +42 -0
  48. package/src/_shared/contrast.ts +100 -0
  49. package/src/_shared/dateAxis.ts +501 -0
  50. package/src/_shared/index.ts +78 -0
  51. package/src/_shared/mapTheme.ts +551 -0
  52. package/src/_shared/scale.ts +86 -0
  53. package/src/_shared/seriesCsv.ts +68 -0
  54. package/src/_shared/touch.ts +8 -0
  55. package/src/_shared/useChartFoundation.ts +175 -0
  56. package/src/_shared/useChartFullscreen.ts +254 -0
  57. package/src/_shared/useChartMenu.ts +111 -0
  58. package/src/_shared/useChartPadding.ts +235 -0
  59. package/src/_shared/useChartSize.ts +58 -0
  60. package/src/_shared/useChartTooltip.ts +205 -0
  61. package/src/env.d.ts +4 -0
  62. package/src/hsa-mapping.ts +1 -0
  63. package/src/index.ts +41 -0
  64. package/src/tooltip-position.ts +55 -0
  65. package/src/us-cities/data.ts +1371 -0
  66. package/src/us-cities/index.ts +122 -0
  67. package/src/us-cities.ts +7 -0
@@ -0,0 +1,56 @@
1
+ {
2
+ "version": "0.8.1",
3
+ "package": "@cfasim-ui/charts",
4
+ "content": {
5
+ "charts": [
6
+ {
7
+ "name": "BarChart",
8
+ "slug": "bar-chart",
9
+ "docs": "docs/BarChart.md",
10
+ "source": "src/BarChart/BarChart.vue",
11
+ "keywords": [
12
+ "bar",
13
+ "column",
14
+ "chart",
15
+ "categorical",
16
+ "grouped",
17
+ "stacked",
18
+ "overlay",
19
+ "vertical",
20
+ "horizontal",
21
+ "svg"
22
+ ]
23
+ },
24
+ {
25
+ "name": "ChoroplethMap",
26
+ "slug": "choropleth-map",
27
+ "docs": "docs/ChoroplethMap.md",
28
+ "source": "src/ChoroplethMap/ChoroplethMap.vue",
29
+ "keywords": []
30
+ },
31
+ {
32
+ "name": "DataTable",
33
+ "slug": "data-table",
34
+ "docs": "docs/DataTable.md",
35
+ "source": "src/DataTable/DataTable.vue",
36
+ "keywords": []
37
+ },
38
+ {
39
+ "name": "LineChart",
40
+ "slug": "line-chart",
41
+ "docs": "docs/LineChart.md",
42
+ "source": "src/LineChart/LineChart.vue",
43
+ "keywords": [
44
+ "line",
45
+ "chart",
46
+ "time-series",
47
+ "series",
48
+ "axis",
49
+ "area",
50
+ "confidence band",
51
+ "svg"
52
+ ]
53
+ }
54
+ ]
55
+ }
56
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfasim-ui/charts",
3
- "version": "0.7.8",
3
+ "version": "0.8.1",
4
4
  "type": "module",
5
5
  "description": "Chart visualization components for cfasim-ui",
6
6
  "license": "Apache-2.0",
@@ -13,7 +13,11 @@
13
13
  "access": "public"
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "docs",
18
+ "src",
19
+ "!src/**/*.test.ts",
20
+ "!src/**/*.spec.ts"
17
21
  ],
18
22
  "main": "./dist/index.js",
19
23
  "types": "./dist/index.d.ts",
@@ -36,30 +40,30 @@
36
40
  "*.css"
37
41
  ],
38
42
  "dependencies": {
39
- "d3-geo": "^3.1.1",
40
- "d3-selection": "^3.0.0",
41
- "d3-transition": "^3.0.1",
42
- "d3-zoom": "^3.0.0",
43
- "reka-ui": "^2.9.2",
44
- "topojson-client": "^3.1.0",
45
- "@cfasim-ui/shared": "0.7.8"
43
+ "d3-geo": "3.1.1",
44
+ "d3-selection": "3.0.0",
45
+ "d3-transition": "3.0.1",
46
+ "d3-zoom": "3.0.0",
47
+ "reka-ui": "2.10.1",
48
+ "topojson-client": "3.1.0",
49
+ "@cfasim-ui/shared": "0.8.1"
46
50
  },
47
51
  "peerDependencies": {
48
52
  "vue": "^3.5.0"
49
53
  },
50
54
  "devDependencies": {
51
- "@types/d3-geo": "^3.1.0",
52
- "@types/d3-selection": "^3.0.11",
53
- "@types/d3-transition": "^3.0.9",
54
- "@types/d3-zoom": "^3.0.8",
55
- "@types/topojson-client": "^3.1.5",
56
- "@types/topojson-specification": "^1.0.5",
57
- "@vitejs/plugin-vue": "^6.0.5",
58
- "@vue/test-utils": "^2.4.6",
59
- "happy-dom": "^20.8.9",
60
- "us-atlas": "^3.0.1",
61
- "vite-plugin-dts": "^4.5.4",
62
- "vitest": "^4.1.0"
55
+ "@types/d3-geo": "3.1.0",
56
+ "@types/d3-selection": "3.0.11",
57
+ "@types/d3-transition": "3.0.9",
58
+ "@types/d3-zoom": "3.0.8",
59
+ "@types/topojson-client": "3.1.5",
60
+ "@types/topojson-specification": "1.0.5",
61
+ "@vitejs/plugin-vue": "6.0.8",
62
+ "@vue/test-utils": "2.4.11",
63
+ "happy-dom": "20.10.6",
64
+ "us-atlas": "3.0.1",
65
+ "vite-plugin-dts": "5.0.3",
66
+ "vitest": "4.1.10"
63
67
  },
64
68
  "scripts": {
65
69
  "build": "vite build"