Actions74
- ai Actions
- array Actions
- audiovideo Actions
- carbone Actions
- charts Actions
- code Actions
- data Actions
- datetime Actions
- events Actions
- files Actions
- geo Actions
- hellospaces Actions
- images Actions
- Get Metadata of an Image
- Scale an Image
- Overlay an Image on another Image
- Scale an Image to Fit Given Dimensions
- Resize an Image
- Mask an Image with Another Image
- Mask an Image with a Circle Mask
- Crops an image by the given x, y, width and height paramters.
- Convert Texts to an Image
- Convert HTML String or URL to an Image
- Generates a QRCode with given text and color.
- Get EXIF from Image
- Remove EXIF from Image
- Modify Image EXIF
- playground Actions
- spreadsheet Actions
- stripe Actions
- youtube Actions
charts → Create a Bar Chart
AI-generatedOverview
The "Create a Bar Chart" operation in the charts resource of this n8n node allows users to generate bar charts from structured data. The node supports both manual and expression-based input for chart data and customization options, and outputs the resulting chart in PDF, PNG, or JPG format as binary data. This is useful for automating report generation, visualizing workflow results, or embedding dynamically generated charts into documents or emails.
Practical examples:
- Automatically create sales performance bar charts from CRM data.
- Visualize survey results or poll outcomes in a workflow.
- Generate custom-branded charts for inclusion in automated reports.
Properties
| Name | Meaning |
|---|---|
| Data Input Mode | Choose how to provide chart data: - Expression: Supply data as a JSON array. - Manual: Enter data entries one by one (label, value, colors). |
| Data | The dataset for the bar chart. If using Expression mode, provide an array of objects. In Manual mode, add multiple entries with: - Label - Value - Background Color - Border Color |
| Chart Options Input Mode | Choose how to provide chart customization options: - Expression: Supply options as a JSON object. - Manual: Set individual options via UI fields. |
| Chart Options | Customization settings for the chart. In Expression mode, provide as JSON. In Manual mode, set options such as: - Chart Title & Alignment - Colors (title, subtitle, background, grid, axis) - Font, padding, axis titles, etc. |
| Output Format | Desired output file type: pdf, png, or jpg. |
| Binary Property | Name of the binary property where the generated chart will be stored (e.g., data). |
Output
- Binary Data: The node outputs the generated bar chart as a binary file in the specified format (PDF, PNG, or JPG).
- The binary data is attached to the output item under the property name specified in Binary Property.
- Any existing binary data on the input item is preserved unless overwritten by the same property name.
- JSON: The original JSON data from the input is preserved in the output item's
jsonfield.
Dependencies
- External Service: Requires access to the 1001fx API.
- API Key: You must configure the
1001fxApicredential in n8n. - n8n Configuration: No special environment variables are required beyond standard credential setup.
Troubleshooting
Common Issues:
- Missing or Invalid API Key: If the
1001fxApicredential is not set up or is invalid, the node will fail to connect to the service. - Incorrect Data Structure: Supplying malformed data (e.g., missing required fields like label or value) may result in errors or empty charts.
- Unsupported Output Format: Only
pdf,png, andjpgare supported; other values will cause errors. - Binary Property Overwrite: If the specified binary property already exists, it will be overwritten.
Error Messages:
"error": "<message>"in the output JSON indicates a failure, often due to API issues, bad input, or misconfiguration.- If you see parsing errors or unexpected output, check that your data and options match the expected structure.