vue-data-ui 2.0.21 → 2.0.23
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/LICENSE +21 -21
- package/README.md +144 -133
- package/dist/{index-b0e5e7b2.js → index-a3597499.js} +13555 -12984
- package/dist/{index.es-50ca0293.js → index.es-94f33aa6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +4161 -4011
- package/dist/vue-data-ui.js +20 -19
- package/package.json +84 -83
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 ALEC LLOYD PROBERT
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 ALEC LLOYD PROBERT
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,133 +1,144 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://vue-data-ui.graphieros.com/"><img src="https://vue-data-ui.graphieros.com/vue-data-ui2.png"></a>
|
|
3
|
-
<br>
|
|
4
|
-
<br>
|
|
5
|
-
<br>
|
|
6
|
-
<a href="https://vue-data-ui.graphieros.com/"><img src="https://vue-data-ui.graphieros.com/vue-data-ui-showcase.png"></a>
|
|
7
|
-
</p>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-

|
|
27
|
-
- [VueUiDonut](https://vue-data-ui.graphieros.com/docs#vue-ui-donut)
|
|
28
|
-
- [VueUiWaffle](https://vue-data-ui.graphieros.com/docs#vue-ui-waffle)
|
|
29
|
-
- [VueUiRadar](https://vue-data-ui.graphieros.com/docs#vue-ui-radar)
|
|
30
|
-
- [VueUiQuadrant](https://vue-data-ui.graphieros.com/docs#vue-ui-quadrant)
|
|
31
|
-
- [VueUiGauge](https://vue-data-ui.graphieros.com/docs#vue-ui-gauge)
|
|
32
|
-
- [VueUiChestnut](https://vue-data-ui.graphieros.com/docs#vue-ui-chestnut)
|
|
33
|
-
- [VueUiOnion](https://vue-data-ui.graphieros.com/docs#vue-ui-onion)
|
|
34
|
-
- [VueUiVerticalBar](https://vue-data-ui.graphieros.com/docs#vue-ui-vertical-bar)
|
|
35
|
-
- [VueUiHeatmap](https://vue-data-ui.graphieros.com/docs#vue-ui-heatmap)
|
|
36
|
-
- [VueUiScatter](https://vue-data-ui.graphieros.com/docs#vue-ui-scatter)
|
|
37
|
-
- [VueUiCandlestick](https://vue-data-ui.graphieros.com/docs#vue-ui-candlestick)
|
|
38
|
-
- [VueUiAgePyramid](https://vue-data-ui.graphieros.com/docs#vue-ui-age-pyramid)
|
|
39
|
-
- [VueUiRelationCircle](https://vue-data-ui.graphieros.com/docs#vue-ui-relation-circle)
|
|
40
|
-
- [VueUiThermometer](https://vue-data-ui.graphieros.com/docs#vue-ui-thermometer)
|
|
41
|
-
- [VueUiRings](https://vue-data-ui.graphieros.com/docs#vue-ui-rings)
|
|
42
|
-
- [VueUiWheel](https://vue-data-ui.graphieros.com/docs#vue-ui-wheel)
|
|
43
|
-
- [VueUiTiremarks](https://vue-data-ui.graphieros.com/docs#vue-ui-tiremarks)
|
|
44
|
-
- [VueUiDonutEvolution](https://vue-data-ui.graphieros.com/docs#vue-ui-donut-evolution)
|
|
45
|
-
- [VueUiMoodRadar](https://vue-data-ui.graphieros.com/docs#vue-ui-mood-radar)
|
|
46
|
-
- [VueUiMolecule](https://vue-data-ui.graphieros.com/docs#vue-ui-molecule)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## Mini charts
|
|
50
|
-
|
|
51
|
-
- [
|
|
52
|
-
- [
|
|
53
|
-
- [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- [
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
- [
|
|
68
|
-
- [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- [
|
|
73
|
-
- [
|
|
74
|
-
|
|
75
|
-
#
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
import {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://vue-data-ui.graphieros.com/"><img src="https://vue-data-ui.graphieros.com/vue-data-ui2.png"></a>
|
|
3
|
+
<br>
|
|
4
|
+
<br>
|
|
5
|
+
<br>
|
|
6
|
+
<a href="https://vue-data-ui.graphieros.com/"><img src="https://vue-data-ui.graphieros.com/vue-data-ui-showcase.png"></a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
# vue-data-ui
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
[](https://madewithvuejs.com/p/vue-data-ui/shield-link)
|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
[Interactive documentation](https://vue-data-ui.graphieros.com/)
|
|
19
|
+
|
|
20
|
+
A user-empowering data visualization Vue components library.
|
|
21
|
+
|
|
22
|
+
Available components:
|
|
23
|
+
|
|
24
|
+
## Charts
|
|
25
|
+
|
|
26
|
+
- [VueUiXy](https://vue-data-ui.graphieros.com/docs#vue-ui-xy)
|
|
27
|
+
- [VueUiDonut](https://vue-data-ui.graphieros.com/docs#vue-ui-donut)
|
|
28
|
+
- [VueUiWaffle](https://vue-data-ui.graphieros.com/docs#vue-ui-waffle)
|
|
29
|
+
- [VueUiRadar](https://vue-data-ui.graphieros.com/docs#vue-ui-radar)
|
|
30
|
+
- [VueUiQuadrant](https://vue-data-ui.graphieros.com/docs#vue-ui-quadrant)
|
|
31
|
+
- [VueUiGauge](https://vue-data-ui.graphieros.com/docs#vue-ui-gauge)
|
|
32
|
+
- [VueUiChestnut](https://vue-data-ui.graphieros.com/docs#vue-ui-chestnut)
|
|
33
|
+
- [VueUiOnion](https://vue-data-ui.graphieros.com/docs#vue-ui-onion)
|
|
34
|
+
- [VueUiVerticalBar](https://vue-data-ui.graphieros.com/docs#vue-ui-vertical-bar)
|
|
35
|
+
- [VueUiHeatmap](https://vue-data-ui.graphieros.com/docs#vue-ui-heatmap)
|
|
36
|
+
- [VueUiScatter](https://vue-data-ui.graphieros.com/docs#vue-ui-scatter)
|
|
37
|
+
- [VueUiCandlestick](https://vue-data-ui.graphieros.com/docs#vue-ui-candlestick)
|
|
38
|
+
- [VueUiAgePyramid](https://vue-data-ui.graphieros.com/docs#vue-ui-age-pyramid)
|
|
39
|
+
- [VueUiRelationCircle](https://vue-data-ui.graphieros.com/docs#vue-ui-relation-circle)
|
|
40
|
+
- [VueUiThermometer](https://vue-data-ui.graphieros.com/docs#vue-ui-thermometer)
|
|
41
|
+
- [VueUiRings](https://vue-data-ui.graphieros.com/docs#vue-ui-rings)
|
|
42
|
+
- [VueUiWheel](https://vue-data-ui.graphieros.com/docs#vue-ui-wheel)
|
|
43
|
+
- [VueUiTiremarks](https://vue-data-ui.graphieros.com/docs#vue-ui-tiremarks)
|
|
44
|
+
- [VueUiDonutEvolution](https://vue-data-ui.graphieros.com/docs#vue-ui-donut-evolution)
|
|
45
|
+
- [VueUiMoodRadar](https://vue-data-ui.graphieros.com/docs#vue-ui-mood-radar)
|
|
46
|
+
- [VueUiMolecule](https://vue-data-ui.graphieros.com/docs#vue-ui-molecule)
|
|
47
|
+
- [VueUiNestedDonuts](https://vue-data-ui.graphieros.com/docs#vue-ui-nested-donuts)
|
|
48
|
+
|
|
49
|
+
## Mini charts
|
|
50
|
+
|
|
51
|
+
- [VueUiSparkline](https://vue-data-ui.graphieros.com/docs#vue-ui-sparkline)
|
|
52
|
+
- [VueUiSparkbar](https://vue-data-ui.graphieros.com/docs#vue-ui-sparkbar)
|
|
53
|
+
- [VueUiSparkstackbar](https://vue-data-ui.graphieros.com/docs#vue-ui-sparkstackbar)
|
|
54
|
+
- [VueUiSparkHistogram](https://vue-data-ui.graphieros.com/docs#vue-ui-sparkhistogram)
|
|
55
|
+
|
|
56
|
+
## 3d
|
|
57
|
+
|
|
58
|
+
- [VueUi3dBar](https://vue-data-ui.graphieros.com/docs#vue-ui-3d-bar)
|
|
59
|
+
|
|
60
|
+
## Tables
|
|
61
|
+
|
|
62
|
+
- [VueUiTableSparkline](https://vue-data-ui.graphieros.com/docs#vue-ui-table-sparkline)
|
|
63
|
+
- [VueUiTable](https://vue-data-ui.graphieros.com/docs#vue-ui-table)
|
|
64
|
+
|
|
65
|
+
## Rating
|
|
66
|
+
|
|
67
|
+
- [VueUiRating](https://vue-data-ui.graphieros.com/docs#vue-ui-rating)
|
|
68
|
+
- [VueUiSmiley](https://vue-data-ui.graphieros.com/docs#vue-ui-smiley)
|
|
69
|
+
|
|
70
|
+
## Utilities
|
|
71
|
+
|
|
72
|
+
- [VueUiScreenshot](https://vue-data-ui.graphieros.com/docs#vue-ui-screenshot)
|
|
73
|
+
- [VueUiSkeleton](https://vue-data-ui.graphieros.com/docs#vue-ui-skeleton)
|
|
74
|
+
- [VueUiDashboard](https://vue-data-ui.graphieros.com/docs#vue-ui-dashboard)
|
|
75
|
+
- [VueUiAnnotator](https://vue-data-ui.graphieros.com/docs#vue-ui-annotator)
|
|
76
|
+
- [VueUiIcon](https://vue-data-ui.graphieros.com/docs#vue-ui-icon)
|
|
77
|
+
- [VueUiDigits](https://vue-data-ui.graphieros.com/docs#vue-ui-digits)
|
|
78
|
+
- [VueUiMiniLoader](https://vue-data-ui.graphieros.com/docs#vue-ui-mini-loader)
|
|
79
|
+
|
|
80
|
+
# Installation
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
npm i vue-data-ui
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
You can declare components globally in your main.js:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
import { createApp } from 'vue'
|
|
90
|
+
import App from "./App.vue";
|
|
91
|
+
// Include the css;
|
|
92
|
+
import "vue-data-ui/style.css";
|
|
93
|
+
|
|
94
|
+
// You can declare Vue Data UI components globally
|
|
95
|
+
import { VueUiRadar } from "vue-data-ui";
|
|
96
|
+
|
|
97
|
+
const app = createApp(App);
|
|
98
|
+
|
|
99
|
+
app.component("VueUiRadar", VueUiRadar);
|
|
100
|
+
app.mount('#app');
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Or you can import just what you need in your files:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
<script setup>
|
|
107
|
+
import { VueUiRadar, VueUiXy } from "vue-data-ui";
|
|
108
|
+
</script>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Typescript
|
|
112
|
+
|
|
113
|
+
Types are available in the 'vue-data-ui.d.ts' file under the types directory of the package.
|
|
114
|
+
|
|
115
|
+
## Nuxt
|
|
116
|
+
|
|
117
|
+
[This repo contains a boilerplate implementation of the vue-data-ui package in Nuxt](https://github.com/graphieros/vue-data-ui-nuxt)
|
|
118
|
+
|
|
119
|
+
# Customizable tooltips
|
|
120
|
+
|
|
121
|
+
Charts with tooltips have a config option to customize tooltip contents:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
customFormat: ({ seriesIndex, datapoint, series, config }) => {
|
|
126
|
+
return `<div>${ ... }</div>`;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
# Slots
|
|
132
|
+
|
|
133
|
+
Most Vue Data UI chart components include a #svg slot you can use to introduce customized svg elements (shapes, text, etc).
|
|
134
|
+
|
|
135
|
+
# Config
|
|
136
|
+
|
|
137
|
+
If for some reason you can't access the documentation website and need to get the default config object for a component:
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
import { getVueDataUiConfig } from "vue-data-ui";
|
|
141
|
+
|
|
142
|
+
const defaultConfigXy = getVueDataUiConfig("vue_ui_xy");
|
|
143
|
+
|
|
144
|
+
```
|