@adyen/lume 0.3.3 → 0.5.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.
- package/dist/common/{6323ec6e.js → 38fe22cc.js} +2 -2
- package/dist/common/38fe22cc.js.map +1 -0
- package/dist/common/{afbaa446.js → 5791edde.js} +2 -2
- package/dist/common/5791edde.js.map +1 -0
- package/dist/common/{6234a134.js → 68efd163.js} +2 -2
- package/dist/common/68efd163.js.map +1 -0
- package/dist/common/7d05c4b2.js +2660 -0
- package/dist/common/7d05c4b2.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +18 -21
- package/dist/plugin.js.map +1 -1
- package/dist/scss/_utilities.scss +1 -0
- package/dist/scss/components/lume-alluvial-group.scss +7 -0
- package/dist/scss/components/lume-bar.scss +1 -0
- package/dist/scss/components/lume-line.scss +1 -1
- package/dist/scss/components/lume-point.scss +1 -1
- package/dist/scss/components/lume-sparkline-chart.scss +1 -0
- package/dist/scss/components/{lume-axis.scss → lume-tick.scss} +1 -0
- package/dist/scss/main.scss +1 -1
- package/dist/styles/main.css +2 -2
- package/package.json +11 -107
- package/LICENSE +0 -7
- package/README.md +0 -169
- package/dist/common/6234a134.js.map +0 -1
- package/dist/common/6323ec6e.js.map +0 -1
- package/dist/common/6c47b7a9.js +0 -2858
- package/dist/common/6c47b7a9.js.map +0 -1
- package/dist/common/afbaa446.js.map +0 -1
package/README.md
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
# Lume
|
|
2
|
-
|
|
3
|
-
[](https://github.com/Adyen/lume/actions/workflows/pr.yml)
|
|
4
|
-
[](https://github.com/Adyen/lume/blob/main/LICENSE)
|
|
5
|
-
[](https://app.netlify.com/sites/adyen-lume/deploys)
|
|
6
|
-
|
|
7
|
-
Lume is a library for graphical representations of information and data. By using visual elements like charts, graphs, and maps, this repository provide an accessible way to see and understand trends, outliers, and patterns in data. We use Vue to all graphic elements and rely on d3.js for the calculations.
|
|
8
|
-
|
|
9
|
-
**[Design guidelines (Figma)](https://www.figma.com/file/r9fPqTXA4dlP6SIyfmGlDC/%F0%9F%8C%9D-Lume---Data-Visualization-Library)**
|
|
10
|
-
|
|
11
|
-
- [Stack](#stack)
|
|
12
|
-
- [Getting started](#getting-started)
|
|
13
|
-
- [Development](#development)
|
|
14
|
-
- [Contacts](#contacts)
|
|
15
|
-
|
|
16
|
-
## Stack
|
|
17
|
-
|
|
18
|
-
### Dependencies
|
|
19
|
-
|
|
20
|
-
- [D3.js](https://d3js.org/) for calculations
|
|
21
|
-
- [Vue _(v2.7)_](https://v2.vuejs.org/) for rendering
|
|
22
|
-
- [Popper.js](https://popper.js.org/) for tooltip functionality
|
|
23
|
-
- [Portal Vue](https://portal-vue.linusb.org/) for portalling (not available in Vue 2)
|
|
24
|
-
|
|
25
|
-
### Dev stack
|
|
26
|
-
|
|
27
|
-
- [Vite](https://vitejs.dev/) and [Webpack](https://webpack.js.org/) for bundling
|
|
28
|
-
- [Sass](https://sass-lang.com/) for complex/reusable styling
|
|
29
|
-
- [TypeScript](https://www.typescriptlang.org/) for type checking
|
|
30
|
-
- [TypeScript ESLint](https://typescript-eslint.io/) for linting _(with the help of [eslint-plugin-vue](https://eslint.vuejs.org/))_
|
|
31
|
-
- [Storybook](https://storybook.js.org/) for developing/showcasing components
|
|
32
|
-
- [Jest](https://jestjs.io/) for unit testing
|
|
33
|
-
|
|
34
|
-
## Getting started
|
|
35
|
-
|
|
36
|
-
### Installation
|
|
37
|
-
|
|
38
|
-
To install Lume, run the following command:
|
|
39
|
-
|
|
40
|
-
```shell
|
|
41
|
-
$ npm install @adyen/lume
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Components
|
|
45
|
-
|
|
46
|
-
You can import Lume components to your Vue app:
|
|
47
|
-
|
|
48
|
-
```ts
|
|
49
|
-
// SFC <script type="ts">
|
|
50
|
-
|
|
51
|
-
import { defineComponent } from 'vue';
|
|
52
|
-
import { LumeBarChart } from '@adyen/lume';
|
|
53
|
-
|
|
54
|
-
export default defineComponent({
|
|
55
|
-
components: { LumeBarChart },
|
|
56
|
-
...
|
|
57
|
-
});
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Plugin
|
|
61
|
-
|
|
62
|
-
You can also import Lume as a Vue plugin that you install in your global Vue setup:
|
|
63
|
-
|
|
64
|
-
```ts
|
|
65
|
-
import Vue from 'vue';
|
|
66
|
-
import LumePlugin from '@adyen/lume/plugin';
|
|
67
|
-
|
|
68
|
-
import App from './my-app.vue';
|
|
69
|
-
|
|
70
|
-
Vue.use(LumePlugin);
|
|
71
|
-
|
|
72
|
-
const app = new Vue(App).$mount('#root');
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Development
|
|
76
|
-
|
|
77
|
-
### Quick start
|
|
78
|
-
|
|
79
|
-
Follow these steps to quickly start developing amazing data-viz components locally:
|
|
80
|
-
|
|
81
|
-
1. Clone the repo
|
|
82
|
-
```shell
|
|
83
|
-
$ git clone git@github.com:Adyen/lume.git
|
|
84
|
-
```
|
|
85
|
-
2. Install npm packages
|
|
86
|
-
```shell
|
|
87
|
-
$ npm i
|
|
88
|
-
```
|
|
89
|
-
3. Run the local server
|
|
90
|
-
```shell
|
|
91
|
-
$ npm start
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
### Docker
|
|
95
|
-
|
|
96
|
-
To run the app inside a Docker container:
|
|
97
|
-
|
|
98
|
-
1. Create a `.env` file with your Docker image URL:
|
|
99
|
-
```shell
|
|
100
|
-
$ echo DOCKER_IMAGE={YOUR_IMAGE_HERE} >> .env
|
|
101
|
-
```
|
|
102
|
-
2. Start your container:
|
|
103
|
-
```shell
|
|
104
|
-
$ docker compose up -d
|
|
105
|
-
```
|
|
106
|
-
3. Attach to it in your terminal:
|
|
107
|
-
```shell
|
|
108
|
-
$ docker attach lume
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
#### Storybook
|
|
112
|
-
|
|
113
|
-
Storybook is available by running the following command:
|
|
114
|
-
|
|
115
|
-
```shell
|
|
116
|
-
$ npm run storybook
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Every chart component should have its own `.stories` file, and it will be automatically loaded onto the Storybook manager.
|
|
120
|
-
|
|
121
|
-
##### Available addons
|
|
122
|
-
|
|
123
|
-
- [`addon-essentials`](https://www.npmjs.com/package/@storybook/addon-essentials)
|
|
124
|
-
- [`addon-storysource`](https://www.npmjs.com/package/@storybook/addon-storysource)
|
|
125
|
-
- [`addon-a11y`](https://www.npmjs.com/package/@storybook/addon-a11y)
|
|
126
|
-
|
|
127
|
-
### Releasing
|
|
128
|
-
|
|
129
|
-
To generate a release, run:
|
|
130
|
-
|
|
131
|
-
```shell
|
|
132
|
-
$ npm run release
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
This will prompt you with an interactive CLI to create a new version, tag, changelog entry and release.
|
|
136
|
-
|
|
137
|
-
### Roadmap
|
|
138
|
-
|
|
139
|
-
The charts we wish to include:
|
|
140
|
-
|
|
141
|
-
#### V1
|
|
142
|
-
|
|
143
|
-
- [x] Alluvial diagram
|
|
144
|
-
- [x] Bar chart
|
|
145
|
-
- [x] Single
|
|
146
|
-
- [x] Stacked
|
|
147
|
-
- [x] Grouped
|
|
148
|
-
- [x] Horizontal orientation for all
|
|
149
|
-
- [x] Line chart
|
|
150
|
-
- [x] Sparkline chart
|
|
151
|
-
|
|
152
|
-
#### Next
|
|
153
|
-
|
|
154
|
-
The following are planned for future releases:
|
|
155
|
-
|
|
156
|
-
- Violin plot
|
|
157
|
-
- Box plot
|
|
158
|
-
- Mini bar chart (Bar sparkline)
|
|
159
|
-
|
|
160
|
-
**Note:** Components from this list can change, so being here doesn't mean it will land on the library for sure.
|
|
161
|
-
|
|
162
|
-
## Contacts
|
|
163
|
-
|
|
164
|
-
This project is currently being developed & maintained by team Lume. This includes:
|
|
165
|
-
|
|
166
|
-
- Govind Srinidhi | [@govind-srinidhi](https://github.com/govind-srinidhi)
|
|
167
|
-
- Joao Santos | [@joao-m-santos](https://github.com/joao-m-santos)
|
|
168
|
-
- Lucas van Heerikhuizen | [@Lucas1981](https://github.com/Lucas1981)
|
|
169
|
-
- Vivian Joseph | [@vivy27](https://github.com/vivy27)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"6234a134.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"6323ec6e.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|