n8n-nodes-base 0.218.1 → 0.219.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/build.tsbuildinfo +1 -1
- package/dist/credentials/Aws.credentials.js +53 -35
- package/dist/credentials/Aws.credentials.js.map +1 -1
- package/dist/known/nodes.json +4 -0
- package/dist/nodes/ActiveCampaign/ActiveCampaignTrigger.node.js.map +1 -1
- package/dist/nodes/AcuityScheduling/AcuitySchedulingTrigger.node.js.map +1 -1
- package/dist/nodes/Affinity/AffinityTrigger.node.js.map +1 -1
- package/dist/nodes/Asana/AsanaTrigger.node.js.map +1 -1
- package/dist/nodes/Autopilot/AutopilotTrigger.node.js.map +1 -1
- package/dist/nodes/Bitbucket/BitbucketTrigger.node.js.map +1 -1
- package/dist/nodes/Box/BoxTrigger.node.js.map +1 -1
- package/dist/nodes/Calendly/CalendlyTrigger.node.js.map +1 -1
- package/dist/nodes/Cisco/Webex/CiscoWebexTrigger.node.js.map +1 -1
- package/dist/nodes/ClickUp/ClickUpTrigger.node.js.map +1 -1
- package/dist/nodes/ConvertKit/ConvertKitTrigger.node.js.map +1 -1
- package/dist/nodes/Copper/CopperTrigger.node.js.map +1 -1
- package/dist/nodes/CustomerIo/CustomerIoTrigger.node.js.map +1 -1
- package/dist/nodes/Eventbrite/EventbriteTrigger.node.js.map +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.js.map +1 -1
- package/dist/nodes/Figma/FigmaTrigger.node.js.map +1 -1
- package/dist/nodes/Flow/FlowTrigger.node.js.map +1 -1
- package/dist/nodes/FormIo/FormIoTrigger.node.js.map +1 -1
- package/dist/nodes/Formstack/FormstackTrigger.node.js.map +1 -1
- package/dist/nodes/GetResponse/GetResponseTrigger.node.js.map +1 -1
- package/dist/nodes/Gitlab/GitlabTrigger.node.js.map +1 -1
- package/dist/nodes/Gumroad/GumroadTrigger.node.js.map +1 -1
- package/dist/nodes/HelpScout/HelpScoutTrigger.node.js.map +1 -1
- package/dist/nodes/Hubspot/HubspotTrigger.node.js.map +1 -1
- package/dist/nodes/InvoiceNinja/InvoiceNinjaTrigger.node.js.map +1 -1
- package/dist/nodes/JotForm/JotFormTrigger.node.js.map +1 -1
- package/dist/nodes/Keap/KeapTrigger.node.js.map +1 -1
- package/dist/nodes/Lemlist/LemlistTrigger.node.js.map +1 -1
- package/dist/nodes/Linear/LinearTrigger.node.js.map +1 -1
- package/dist/nodes/Mailchimp/MailchimpTrigger.node.js.map +1 -1
- package/dist/nodes/MailerLite/MailerLiteTrigger.node.js.map +1 -1
- package/dist/nodes/Mailjet/MailjetTrigger.node.js.map +1 -1
- package/dist/nodes/Mautic/MauticTrigger.node.js.map +1 -1
- package/dist/nodes/Pushcut/PushcutTrigger.node.js.map +1 -1
- package/dist/nodes/QuickChart/QuickChart.node.d.ts +5 -0
- package/dist/nodes/QuickChart/QuickChart.node.js +394 -0
- package/dist/nodes/QuickChart/QuickChart.node.js.map +1 -0
- package/dist/nodes/QuickChart/QuickChart.node.json +19 -0
- package/dist/nodes/QuickChart/constants.d.ts +6 -0
- package/dist/nodes/QuickChart/constants.js +30 -0
- package/dist/nodes/QuickChart/constants.js.map +1 -0
- package/dist/nodes/QuickChart/quickChart.svg +14 -0
- package/dist/nodes/QuickChart/test/QuickChart.workflow.json +132 -0
- package/dist/nodes/QuickChart/types.d.ts +11 -0
- package/dist/nodes/QuickChart/types.js +3 -0
- package/dist/nodes/QuickChart/types.js.map +1 -0
- package/dist/nodes/SendInBlue/SendInBlueTrigger.node.js.map +1 -1
- package/dist/nodes/Strava/StravaTrigger.node.js.map +1 -1
- package/dist/nodes/Taiga/TaigaTrigger.node.js.map +1 -1
- package/dist/nodes/TheHive/TheHiveTrigger.node.js.map +1 -1
- package/dist/nodes/Trello/TrelloTrigger.node.js.map +1 -1
- package/dist/nodes/Typeform/TypeformTrigger.node.js.map +1 -1
- package/dist/nodes/Workable/WorkableTrigger.node.js.map +1 -1
- package/dist/types/nodes.json +2 -1
- package/package.json +4 -3
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuickChart = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
class QuickChart {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.description = {
|
|
9
|
+
displayName: 'QuickChart',
|
|
10
|
+
name: 'quickChart',
|
|
11
|
+
icon: 'file:quickChart.svg',
|
|
12
|
+
group: ['output'],
|
|
13
|
+
description: 'Create a chart via QuickChart',
|
|
14
|
+
version: 1,
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'QuickChart',
|
|
17
|
+
},
|
|
18
|
+
inputs: ['main'],
|
|
19
|
+
outputs: ['main'],
|
|
20
|
+
properties: [
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Chart Type',
|
|
23
|
+
name: 'chartType',
|
|
24
|
+
type: 'options',
|
|
25
|
+
default: 'bar',
|
|
26
|
+
options: constants_1.CHART_TYPE_OPTIONS,
|
|
27
|
+
description: 'The type of chart to create',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Add Labels',
|
|
31
|
+
name: 'labelsMode',
|
|
32
|
+
type: 'options',
|
|
33
|
+
options: [
|
|
34
|
+
{
|
|
35
|
+
name: 'Manually',
|
|
36
|
+
value: 'manually',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'From Array',
|
|
40
|
+
value: 'array',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
default: 'manually',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Labels',
|
|
47
|
+
name: 'labelsUi',
|
|
48
|
+
type: 'fixedCollection',
|
|
49
|
+
typeOptions: {
|
|
50
|
+
multipleValues: true,
|
|
51
|
+
sortable: true,
|
|
52
|
+
},
|
|
53
|
+
default: {},
|
|
54
|
+
required: true,
|
|
55
|
+
description: 'Labels to use in the chart',
|
|
56
|
+
placeholder: 'Add Label',
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
name: 'labelsValues',
|
|
60
|
+
displayName: 'Labels',
|
|
61
|
+
values: [
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Label',
|
|
64
|
+
name: 'label',
|
|
65
|
+
type: 'string',
|
|
66
|
+
default: '',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: {
|
|
73
|
+
labelsMode: ['manually'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
displayName: 'Labels Array',
|
|
79
|
+
name: 'labelsArray',
|
|
80
|
+
type: 'string',
|
|
81
|
+
required: true,
|
|
82
|
+
default: '',
|
|
83
|
+
placeholder: 'e.g. ["Berlin", "Paris", "Rome", "New York"]',
|
|
84
|
+
displayOptions: {
|
|
85
|
+
show: {
|
|
86
|
+
labelsMode: ['array'],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
description: 'The array of labels to be used in the chart',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Data',
|
|
93
|
+
name: 'data',
|
|
94
|
+
type: 'json',
|
|
95
|
+
default: '',
|
|
96
|
+
description: 'Data to use for the dataset, documentation and examples <a href="https://quickchart.io/documentation/chart-types/" target="_blank">here</a>',
|
|
97
|
+
placeholder: 'e.g. [60, 10, 12, 20]',
|
|
98
|
+
required: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
displayName: 'Put Output In Field',
|
|
102
|
+
name: 'output',
|
|
103
|
+
type: 'string',
|
|
104
|
+
default: 'data',
|
|
105
|
+
required: true,
|
|
106
|
+
description: 'The binary data will be displayed in the Output panel on the right, under the Binary tab',
|
|
107
|
+
hint: 'The name of the output field to put the binary file data in',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Chart Options',
|
|
111
|
+
name: 'chartOptions',
|
|
112
|
+
type: 'collection',
|
|
113
|
+
placeholder: 'Add Option',
|
|
114
|
+
default: {},
|
|
115
|
+
options: [
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Background Color',
|
|
118
|
+
name: 'backgroundColor',
|
|
119
|
+
type: 'color',
|
|
120
|
+
typeOptions: {
|
|
121
|
+
showAlpha: true,
|
|
122
|
+
},
|
|
123
|
+
default: '',
|
|
124
|
+
description: 'Background color of the chart',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: 'Device Pixel Ratio',
|
|
128
|
+
name: 'devicePixelRatio',
|
|
129
|
+
type: 'number',
|
|
130
|
+
default: 2,
|
|
131
|
+
typeOptions: {
|
|
132
|
+
minValue: 1,
|
|
133
|
+
maxValue: 2,
|
|
134
|
+
},
|
|
135
|
+
description: 'Pixel ratio of the chart',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Format',
|
|
139
|
+
name: 'format',
|
|
140
|
+
type: 'options',
|
|
141
|
+
default: 'png',
|
|
142
|
+
description: 'File format of the resulting chart',
|
|
143
|
+
options: [
|
|
144
|
+
{
|
|
145
|
+
name: 'PNG',
|
|
146
|
+
value: 'png',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'PDF',
|
|
150
|
+
value: 'pdf',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'SVG',
|
|
154
|
+
value: 'svg',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'WebP',
|
|
158
|
+
value: 'webp',
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Height',
|
|
164
|
+
name: 'height',
|
|
165
|
+
type: 'number',
|
|
166
|
+
default: 300,
|
|
167
|
+
description: 'Height of the chart',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
displayName: 'Horizontal',
|
|
171
|
+
name: 'horizontal',
|
|
172
|
+
type: 'boolean',
|
|
173
|
+
default: false,
|
|
174
|
+
description: 'Whether the chart should use its Y axis horizontal',
|
|
175
|
+
displayOptions: {
|
|
176
|
+
show: {
|
|
177
|
+
'/chartType': constants_1.HORIZONTAL_CHARTS,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
displayName: 'Width',
|
|
183
|
+
name: 'width',
|
|
184
|
+
type: 'number',
|
|
185
|
+
default: 500,
|
|
186
|
+
description: 'Width of the chart',
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Dataset Options',
|
|
192
|
+
name: 'datasetOptions',
|
|
193
|
+
type: 'collection',
|
|
194
|
+
placeholder: 'Add Option',
|
|
195
|
+
default: {},
|
|
196
|
+
options: [
|
|
197
|
+
{
|
|
198
|
+
displayName: 'Background Color',
|
|
199
|
+
name: 'backgroundColor',
|
|
200
|
+
type: 'color',
|
|
201
|
+
default: '',
|
|
202
|
+
typeOptions: {
|
|
203
|
+
showAlpha: true,
|
|
204
|
+
},
|
|
205
|
+
description: 'Color used for the background the dataset (area of a line graph, fill of a bar chart, etc.)',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
displayName: 'Border Color',
|
|
209
|
+
name: 'borderColor',
|
|
210
|
+
type: 'color',
|
|
211
|
+
typeOptions: {
|
|
212
|
+
showAlpha: true,
|
|
213
|
+
},
|
|
214
|
+
default: '',
|
|
215
|
+
description: 'Color used for lines of the dataset',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Fill',
|
|
219
|
+
name: 'fill',
|
|
220
|
+
type: 'boolean',
|
|
221
|
+
default: true,
|
|
222
|
+
description: 'Whether to fill area of the dataset',
|
|
223
|
+
displayOptions: {
|
|
224
|
+
show: {
|
|
225
|
+
'/chartType': constants_1.Fill_CHARTS,
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
displayName: 'Label',
|
|
231
|
+
name: 'label',
|
|
232
|
+
type: 'string',
|
|
233
|
+
default: '',
|
|
234
|
+
description: 'The label of the dataset',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
displayName: 'Point Style',
|
|
238
|
+
name: 'pointStyle',
|
|
239
|
+
type: 'options',
|
|
240
|
+
default: 'circle',
|
|
241
|
+
description: 'Style to use for points of the dataset',
|
|
242
|
+
options: [
|
|
243
|
+
{
|
|
244
|
+
name: 'Circle',
|
|
245
|
+
value: 'circle',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: 'Cross',
|
|
249
|
+
value: 'cross',
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: 'CrossRot',
|
|
253
|
+
value: 'crossRot',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: 'Dash',
|
|
257
|
+
value: 'dash',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: 'Line',
|
|
261
|
+
value: 'line',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'Rect',
|
|
265
|
+
value: 'rect',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: 'Rect Rot',
|
|
269
|
+
value: 'rectRot',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
name: 'Rect Rounded',
|
|
273
|
+
value: 'rectRounded',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
name: 'Star',
|
|
277
|
+
value: 'star',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: 'Triangle',
|
|
281
|
+
value: 'triangle',
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
displayOptions: {
|
|
285
|
+
show: {
|
|
286
|
+
'/chartType': constants_1.POINT_STYLE_CHARTS,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
],
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
async execute() {
|
|
296
|
+
const items = this.getInputData();
|
|
297
|
+
const datasets = [];
|
|
298
|
+
let chartType = '';
|
|
299
|
+
const labels = [];
|
|
300
|
+
const labelsMode = this.getNodeParameter('labelsMode', 0);
|
|
301
|
+
if (labelsMode === 'manually') {
|
|
302
|
+
const labelsUi = this.getNodeParameter('labelsUi.labelsValues', 0, []);
|
|
303
|
+
if (labelsUi.length) {
|
|
304
|
+
for (const labelValue of labelsUi) {
|
|
305
|
+
if (Array.isArray(labelValue.label)) {
|
|
306
|
+
labels === null || labels === void 0 ? void 0 : labels.push(...labelValue.label);
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
labels === null || labels === void 0 ? void 0 : labels.push(labelValue.label);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
const labelsArray = this.getNodeParameter('labelsArray', 0, '');
|
|
316
|
+
const errorMessage = 'Labels Array is not a valid array, use valid JSON format, or specify it by expressions';
|
|
317
|
+
if (Array.isArray(labelsArray)) {
|
|
318
|
+
labels.push(...labelsArray);
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
const labelsArrayParsed = (0, n8n_workflow_1.jsonParse)(labelsArray, {
|
|
322
|
+
errorMessage,
|
|
323
|
+
});
|
|
324
|
+
if (!Array.isArray(labelsArrayParsed)) {
|
|
325
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), errorMessage);
|
|
326
|
+
}
|
|
327
|
+
labels.push(...labelsArrayParsed);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
for (let i = 0; i < items.length; i++) {
|
|
331
|
+
const data = this.getNodeParameter('data', i);
|
|
332
|
+
const datasetOptions = this.getNodeParameter('datasetOptions', i);
|
|
333
|
+
const backgroundColor = datasetOptions.backgroundColor;
|
|
334
|
+
const borderColor = datasetOptions.borderColor;
|
|
335
|
+
const fill = datasetOptions.fill;
|
|
336
|
+
const label = datasetOptions.label || 'Chart';
|
|
337
|
+
const pointStyle = datasetOptions.pointStyle;
|
|
338
|
+
chartType = this.getNodeParameter('chartType', i);
|
|
339
|
+
if (constants_1.HORIZONTAL_CHARTS.includes(chartType)) {
|
|
340
|
+
const horizontal = this.getNodeParameter('chartOptions.horizontal', i, false);
|
|
341
|
+
if (horizontal) {
|
|
342
|
+
chartType =
|
|
343
|
+
'horizontal' + chartType[0].toUpperCase() + chartType.substring(1, chartType.length);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
let pointStyleName = 'pointStyle';
|
|
347
|
+
if (constants_1.ITEM_STYLE_CHARTS.includes(chartType)) {
|
|
348
|
+
pointStyleName = 'itemStyle';
|
|
349
|
+
}
|
|
350
|
+
datasets.push({
|
|
351
|
+
label,
|
|
352
|
+
data,
|
|
353
|
+
backgroundColor,
|
|
354
|
+
borderColor,
|
|
355
|
+
type: chartType,
|
|
356
|
+
fill,
|
|
357
|
+
[pointStyleName]: pointStyle,
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
const output = this.getNodeParameter('output', 0);
|
|
361
|
+
const chartOptions = this.getNodeParameter('chartOptions', 0);
|
|
362
|
+
const chart = {
|
|
363
|
+
type: chartType,
|
|
364
|
+
data: {
|
|
365
|
+
labels,
|
|
366
|
+
datasets,
|
|
367
|
+
},
|
|
368
|
+
};
|
|
369
|
+
const options = {
|
|
370
|
+
method: 'GET',
|
|
371
|
+
url: 'https://quickchart.io/chart',
|
|
372
|
+
qs: {
|
|
373
|
+
chart: JSON.stringify(chart),
|
|
374
|
+
...chartOptions,
|
|
375
|
+
},
|
|
376
|
+
returnFullResponse: true,
|
|
377
|
+
encoding: 'arraybuffer',
|
|
378
|
+
json: false,
|
|
379
|
+
};
|
|
380
|
+
const response = (await this.helpers.httpRequest(options));
|
|
381
|
+
let mimeType = response.headers['content-type'];
|
|
382
|
+
mimeType = mimeType ? mimeType.split(';').find((value) => value.includes('/')) : undefined;
|
|
383
|
+
return this.prepareOutputData([
|
|
384
|
+
{
|
|
385
|
+
binary: {
|
|
386
|
+
[output]: await this.helpers.prepareBinaryData(response.body, undefined, mimeType),
|
|
387
|
+
},
|
|
388
|
+
json: { chart },
|
|
389
|
+
},
|
|
390
|
+
]);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
exports.QuickChart = QuickChart;
|
|
394
|
+
//# sourceMappingURL=QuickChart.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QuickChart.node.js","sourceRoot":"","sources":["../../../nodes/QuickChart/QuickChart.node.ts"],"names":[],"mappings":";;;AASA,+CAA6D;AAE7D,2CAMqB;AAIrB,MAAa,UAAU;IAAvB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,YAAY;YACzB,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,CAAC,QAAQ,CAAC;YACjB,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE;gBACT,IAAI,EAAE,YAAY;aAClB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,YAAY;oBACzB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,8BAAkB;oBAC3B,WAAW,EAAE,6BAA6B;iBAC1C;gBACD;oBACC,WAAW,EAAE,YAAY;oBACzB,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,UAAU;4BAChB,KAAK,EAAE,UAAU;yBACjB;wBACD;4BACC,IAAI,EAAE,YAAY;4BAClB,KAAK,EAAE,OAAO;yBACd;qBACD;oBACD,OAAO,EA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CAAC;QAEF,MAAM,OAAO,GAAwB;YACpC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6BAA6B;YAClC,EAAE,EAAE;gBACH,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;gBAC5B,GAAG,YAAY;aACf;YACD,kBAAkB,EAAE,IAAI;YACxB,QAAQ,EAAE,aAAa;YACvB,IAAI,EAAE,KAAK;SACX,CAAC;QAEF,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAyB,CAAC;QACnF,IAAI,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAuB,CAAC;QACtE,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE3F,OAAO,IAAI,CAAC,iBAAiB,CAAC;YAC7B;gBACC,MAAM,EAAE;oBACP,CAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAC7C,QAAQ,CAAC,IAAc,EACvB,SAAS,EACT,QAAQ,CACR;iBACD;gBACD,IAAI,EAAE,EAAE,KAAK,EAAE;aACf;SACD,CAAC,CAAC;IACJ,CAAC;CACD;AAxZD,gCAwZC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-base.quickChart",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Marketing & Content"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://docs.n8n.io/integrations/builtin/credentials/quickchart"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.quickchart/"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"alias": ["image", "graph", "report", "chart", "diagram", "data", "visualize"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
+
export declare const CHART_TYPE_OPTIONS: INodePropertyOptions[];
|
|
3
|
+
export declare const HORIZONTAL_CHARTS: string[];
|
|
4
|
+
export declare const ITEM_STYLE_CHARTS: string[];
|
|
5
|
+
export declare const Fill_CHARTS: string[];
|
|
6
|
+
export declare const POINT_STYLE_CHARTS: string[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POINT_STYLE_CHARTS = exports.Fill_CHARTS = exports.ITEM_STYLE_CHARTS = exports.HORIZONTAL_CHARTS = exports.CHART_TYPE_OPTIONS = void 0;
|
|
4
|
+
exports.CHART_TYPE_OPTIONS = [
|
|
5
|
+
{
|
|
6
|
+
name: 'Bar Chart',
|
|
7
|
+
value: 'bar',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: 'Doughnut Chart',
|
|
11
|
+
value: 'doughnut',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'Line Chart',
|
|
15
|
+
value: 'line',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'Pie Chart',
|
|
19
|
+
value: 'pie',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Polar Chart',
|
|
23
|
+
value: 'polarArea',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.HORIZONTAL_CHARTS = ['bar', 'boxplot', 'violin'];
|
|
27
|
+
exports.ITEM_STYLE_CHARTS = ['boxplot', 'horizontalBoxplot', 'violin', 'horizontalViolin'];
|
|
28
|
+
exports.Fill_CHARTS = ['line'];
|
|
29
|
+
exports.POINT_STYLE_CHARTS = ['line'];
|
|
30
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../nodes/QuickChart/constants.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAA2B;IACzD;QACC,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,UAAU;KACjB;IACD;QACC,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,MAAM;KACb;IACD;QACC,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,WAAW;KAClB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAG,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACjD,QAAA,iBAAiB,GAAG,CAAC,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC;AACnF,QAAA,WAAW,GAAG,CAAC,MAAM,CAAC,CAAC;AACvB,QAAA,kBAAkB,GAAG,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="445" height="445" viewBox="0 0 445 445" xml:space="preserve">
|
|
4
|
+
<desc>Created with Fabric.js 1.7.22</desc>
|
|
5
|
+
<defs>
|
|
6
|
+
</defs>
|
|
7
|
+
<g id="icon" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;" transform="translate(-2.4722222222222285 -2.4722222222222285) scale(4.94 4.94)" >
|
|
8
|
+
<path d="M 40.135 90 h -8.782 c -1.519 0 -2.75 -1.231 -2.75 -2.75 V 45.381 c 0 -1.519 1.231 -2.75 2.75 -2.75 h 8.782 c 1.519 0 2.75 1.231 2.75 2.75 V 87.25 C 42.885 88.769 41.654 90 40.135 90 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(255,195,110); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
|
|
9
|
+
<path d="M 58.647 90 h -8.782 c -1.519 0 -2.75 -1.231 -2.75 -2.75 V 31.449 c 0 -1.519 1.231 -2.75 2.75 -2.75 h 8.782 c 1.519 0 2.75 1.231 2.75 2.75 V 87.25 C 61.397 88.769 60.165 90 58.647 90 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(165,215,110); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
|
|
10
|
+
<path d="M 21.624 90 h -8.782 c -1.519 0 -2.75 -1.231 -2.75 -2.75 V 59.313 c 0 -1.519 1.231 -2.75 2.75 -2.75 h 8.782 c 1.519 0 2.75 1.231 2.75 2.75 V 87.25 C 24.374 88.769 23.142 90 21.624 90 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(210,85,90); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
|
|
11
|
+
<path d="M 77.158 90 h -8.782 c -1.519 0 -2.75 -1.231 -2.75 -2.75 V 17.517 c 0 -1.519 1.231 -2.75 2.75 -2.75 h 8.782 c 1.519 0 2.75 1.231 2.75 2.75 V 87.25 C 79.908 88.769 78.677 90 77.158 90 z" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(120,210,190); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
|
|
12
|
+
<path d="M 67.773 17.977 h 18.183 c 1.787 0 2.682 -2.258 1.418 -3.578 L 74.185 0.614 c -0.783 -0.819 -2.053 -0.819 -2.836 0 L 58.16 14.398 c -1.264 1.321 -0.369 3.578 1.418 3.578 L 67.773 17.977" style="stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: rgb(120,210,190); fill-rule: nonzero; opacity: 1;" transform=" matrix(1 0 0 1 0 0) " stroke-linecap="round" />
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
|
|
4
|
+
},
|
|
5
|
+
"nodes": [
|
|
6
|
+
{
|
|
7
|
+
"parameters": {},
|
|
8
|
+
"id": "5ebe2f65-45db-4b22-bd2b-43993c20806f",
|
|
9
|
+
"name": "When clicking \"Execute Workflow\"",
|
|
10
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
11
|
+
"typeVersion": 1,
|
|
12
|
+
"position": [740, 320]
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"parameters": {
|
|
16
|
+
"jsCode": "return [\n {\n label: 'Free Users',\n labels: [\"Berlin\", \"Paris\", \"Rome\", \"New York\"],\n data: [50, 60, 70, 180],\n backgroundColor: '#121d6d77',\n chartType: 'line'\n },\n {\n label: 'Paid Users',\n labels: [\"Berlin\", \"Paris\", \"Rome\", \"New York\"],\n data: [30, 10, 14, 25],\n backgroundColor: '#0c0d0d96',\n chartType: 'bar'\n },\n]"
|
|
17
|
+
},
|
|
18
|
+
"id": "2e81f78c-41a5-48de-80c4-74abf163cd57",
|
|
19
|
+
"name": "Code",
|
|
20
|
+
"type": "n8n-nodes-base.code",
|
|
21
|
+
"typeVersion": 1,
|
|
22
|
+
"position": [980, 320]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"parameters": {
|
|
26
|
+
"labelsUi": {
|
|
27
|
+
"labelsValues": [
|
|
28
|
+
{
|
|
29
|
+
"label": "Q1"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"label": "Q2"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "Q3"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": "Q4"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"data": "={{ $json.data }}",
|
|
43
|
+
"chartOptions": {
|
|
44
|
+
"backgroundColor": "#f93636ff",
|
|
45
|
+
"devicePixelRatio": 2,
|
|
46
|
+
"format": "png",
|
|
47
|
+
"height": 300,
|
|
48
|
+
"horizontal": true,
|
|
49
|
+
"width": 500
|
|
50
|
+
},
|
|
51
|
+
"datasetOptions": {
|
|
52
|
+
"backgroundColor": "={{ $json[\"backgroundColor\"] }}",
|
|
53
|
+
"borderColor": "#e81010",
|
|
54
|
+
"label": "={{ $json[\"label\"] }}"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"name": "BarChart",
|
|
58
|
+
"type": "n8n-nodes-base.quickChart",
|
|
59
|
+
"typeVersion": 1,
|
|
60
|
+
"position": [1220, 200],
|
|
61
|
+
"id": "9f6c9d1c-2732-473f-a357-5766265cd0db"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"parameters": {
|
|
65
|
+
"chartType": "doughnut",
|
|
66
|
+
"labelsUi": {
|
|
67
|
+
"labelsValues": [
|
|
68
|
+
{
|
|
69
|
+
"label": "Q1"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": "Q2"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"label": "Q3"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"label": "Q4"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"data": "={{ $json.data }}",
|
|
83
|
+
"chartOptions": {
|
|
84
|
+
"backgroundColor": "#f93636ff",
|
|
85
|
+
"devicePixelRatio": 2,
|
|
86
|
+
"format": "png",
|
|
87
|
+
"height": 300,
|
|
88
|
+
"width": 500
|
|
89
|
+
},
|
|
90
|
+
"datasetOptions": {
|
|
91
|
+
"backgroundColor": "={{ $json[\"backgroundColor\"] }}",
|
|
92
|
+
"borderColor": "#e81010",
|
|
93
|
+
"label": "={{ $json[\"label\"] }}"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"name": "Doughnut",
|
|
97
|
+
"type": "n8n-nodes-base.quickChart",
|
|
98
|
+
"typeVersion": 1,
|
|
99
|
+
"position": [1220, 400],
|
|
100
|
+
"id": "6c8e1463-c384-4f5c-9de3-d7e052b02b0a"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"connections": {
|
|
104
|
+
"When clicking \"Execute Workflow\"": {
|
|
105
|
+
"main": [
|
|
106
|
+
[
|
|
107
|
+
{
|
|
108
|
+
"node": "Code",
|
|
109
|
+
"type": "main",
|
|
110
|
+
"index": 0
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"Code": {
|
|
116
|
+
"main": [
|
|
117
|
+
[
|
|
118
|
+
{
|
|
119
|
+
"node": "BarChart",
|
|
120
|
+
"type": "main",
|
|
121
|
+
"index": 0
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"node": "Doughnut",
|
|
125
|
+
"type": "main",
|
|
126
|
+
"index": 0
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IDataObject } from 'n8n-workflow';
|
|
2
|
+
export interface IDataset {
|
|
3
|
+
label?: string;
|
|
4
|
+
data: string | IDataObject;
|
|
5
|
+
backgroundColor?: string;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
fill?: boolean;
|
|
10
|
+
pointStyle?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../nodes/QuickChart/types.ts"],"names":[],"mappings":""}
|