quickChart.json•4.49 kB
{
"nodeType": "n8n-nodes-base.quickChart",
"displayName": "QuickChart",
"description": "Create a chart via QuickChart",
"version": 1,
"properties": [
{
"name": "chartType",
"displayName": "Chart Type",
"type": "options",
"default": "bar",
"description": "The type of chart to create"
},
{
"name": "labelsMode",
"displayName": "Add Labels",
"type": "options",
"default": "manually",
"options": [
{
"name": "Manually",
"value": "manually"
},
{
"name": "From Array",
"value": "array"
}
]
},
{
"name": "labelsUi",
"displayName": "Labels",
"type": "fixedCollection",
"default": {},
"description": "Labels to use in the chart",
"placeholder": "Add Label",
"required": true,
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"labelsMode": [
"manually"
]
}
}
},
{
"name": "labelsArray",
"displayName": "Labels Array",
"type": "string",
"default": "",
"description": "The array of labels to be used in the chart",
"placeholder": "e.g. [\"Berlin\", \"Paris\", \"Rome\", \"New York\"]",
"required": true,
"displayOptions": {
"show": {
"labelsMode": [
"array"
]
}
}
},
{
"name": "data",
"displayName": "Data",
"type": "json",
"default": "",
"description": "Data to use for the dataset, documentation and examples <a href=\"https://quickchart.io/documentation/chart-types/\" target=\"_blank\">here</a>",
"placeholder": "e.g. [60, 10, 12, 20]",
"required": true
},
{
"name": "output",
"displayName": "Put Output In Field",
"type": "string",
"default": "data",
"description": "The binary data will be displayed in the Output panel on the right, under the Binary tab",
"required": true
},
{
"name": "chartOptions",
"displayName": "Chart Options",
"type": "collection",
"default": {},
"description": "Background color of the chart",
"placeholder": "Add option",
"options": [
{
"name": "backgroundColor",
"displayName": "Background Color",
"type": "color",
"default": "",
"description": "Background color of the chart"
},
{
"name": "devicePixelRatio",
"displayName": "Device Pixel Ratio",
"type": "number",
"default": 2,
"description": "Pixel ratio of the chart"
}
],
"displayOptions": {
"show": {
"/chartType": "HORIZONTAL_CHARTS"
}
}
},
{
"name": "datasetOptions",
"displayName": "Dataset Options",
"type": "collection",
"default": {},
"description": "Color used for the background the dataset (area of a line graph, fill of a bar chart, etc.)",
"placeholder": "Add option",
"options": [
{
"name": "backgroundColor",
"displayName": "Background Color",
"type": "color",
"default": "",
"description": "Color used for the background the dataset (area of a line graph, fill of a bar chart, etc.)"
},
{
"name": "borderColor",
"displayName": "Border Color",
"type": "color",
"default": "",
"description": "Color used for lines of the dataset"
},
{
"name": "fill",
"displayName": "Fill",
"type": "boolean",
"default": true,
"description": "Whether to fill area of the dataset"
},
{
"name": "label",
"displayName": "Label",
"type": "string",
"default": "",
"description": "The label of the dataset"
}
],
"displayOptions": {
"show": {
"/chartType": "Fill_CHARTS"
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}