@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.
- package/dist/BarChart/BarChart.d.ts +9 -26
- package/dist/ChartMenu/ChartMenu.d.ts +3 -2
- package/dist/ChartTooltip/ChartTooltip.d.ts +9 -12
- package/dist/ChoroplethMap/ChoroplethMap.d.ts +42 -190
- package/dist/ChoroplethMap/ChoroplethTooltip.d.ts +20 -27
- package/dist/ChoroplethMap/canvasLayer.d.ts +23 -6
- package/dist/ChoroplethMap/cityLayout.d.ts +3 -2
- package/dist/ChoroplethMap/mixedGeo.d.ts +74 -0
- package/dist/ChoroplethMap/mixedGeo.test.d.ts +1 -0
- package/dist/DataTable/DataTable.d.ts +3 -2
- package/dist/LineChart/LineChart.d.ts +9 -26
- package/dist/_shared/ChartAnnotations.d.ts +3 -2
- package/dist/_shared/ChartZoomControls.d.ts +3 -2
- package/dist/_shared/index.d.ts +2 -1
- package/dist/_shared/mapTheme.d.ts +159 -0
- package/dist/_shared/mapTheme.test.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1821 -1462
- package/docs/BarChart.md +776 -0
- package/docs/ChoroplethMap.md +1394 -0
- package/docs/DataTable.md +386 -0
- package/docs/LineChart.md +1267 -0
- package/docs/index.json +56 -0
- package/package.json +25 -21
- package/src/BarChart/BarChart.md +743 -0
- package/src/BarChart/BarChart.vue +1901 -0
- package/src/ChartMenu/ChartMenu.vue +220 -0
- package/src/ChartMenu/download.ts +120 -0
- package/src/ChartTooltip/ChartTooltip.vue +97 -0
- package/src/ChoroplethMap/ChoroplethMap.md +1354 -0
- package/src/ChoroplethMap/ChoroplethMap.vue +3778 -0
- package/src/ChoroplethMap/ChoroplethTooltip.vue +103 -0
- package/src/ChoroplethMap/canvasLayer.ts +373 -0
- package/src/ChoroplethMap/cityLayout.ts +262 -0
- package/src/ChoroplethMap/hsaMapping.ts +4116 -0
- package/src/ChoroplethMap/mixedGeo.ts +201 -0
- package/src/DataTable/DataTable.md +372 -0
- package/src/DataTable/DataTable.vue +406 -0
- package/src/LineChart/LineChart.md +1225 -0
- package/src/LineChart/LineChart.vue +1555 -0
- package/src/_shared/ChartAnnotations.vue +420 -0
- package/src/_shared/ChartZoomControls.vue +138 -0
- package/src/_shared/annotations.ts +106 -0
- package/src/_shared/axes.ts +69 -0
- package/src/_shared/chartProps.ts +201 -0
- package/src/_shared/computeTicks.ts +42 -0
- package/src/_shared/contrast.ts +100 -0
- package/src/_shared/dateAxis.ts +501 -0
- package/src/_shared/index.ts +78 -0
- package/src/_shared/mapTheme.ts +551 -0
- package/src/_shared/scale.ts +86 -0
- package/src/_shared/seriesCsv.ts +68 -0
- package/src/_shared/touch.ts +8 -0
- package/src/_shared/useChartFoundation.ts +175 -0
- package/src/_shared/useChartFullscreen.ts +254 -0
- package/src/_shared/useChartMenu.ts +111 -0
- package/src/_shared/useChartPadding.ts +235 -0
- package/src/_shared/useChartSize.ts +58 -0
- package/src/_shared/useChartTooltip.ts +205 -0
- package/src/env.d.ts +4 -0
- package/src/hsa-mapping.ts +1 -0
- package/src/index.ts +41 -0
- package/src/tooltip-position.ts +55 -0
- package/src/us-cities/data.ts +1371 -0
- package/src/us-cities/index.ts +122 -0
- package/src/us-cities.ts +7 -0
package/docs/index.json
ADDED
|
@@ -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.
|
|
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": "
|
|
40
|
-
"d3-selection": "
|
|
41
|
-
"d3-transition": "
|
|
42
|
-
"d3-zoom": "
|
|
43
|
-
"reka-ui": "
|
|
44
|
-
"topojson-client": "
|
|
45
|
-
"@cfasim-ui/shared": "0.
|
|
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": "
|
|
52
|
-
"@types/d3-selection": "
|
|
53
|
-
"@types/d3-transition": "
|
|
54
|
-
"@types/d3-zoom": "
|
|
55
|
-
"@types/topojson-client": "
|
|
56
|
-
"@types/topojson-specification": "
|
|
57
|
-
"@vitejs/plugin-vue": "
|
|
58
|
-
"@vue/test-utils": "
|
|
59
|
-
"happy-dom": "
|
|
60
|
-
"us-atlas": "
|
|
61
|
-
"vite-plugin-dts": "
|
|
62
|
-
"vitest": "
|
|
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"
|