Chart Plot
chart_plot · Nodes · Display
Builds line chart display data.
Renders line, area, or scatter plots from numeric data for visualizing trends and distributions.
Config:
chart_type- Plot style:"line"for connected lines,"area"for filled areas, or"plot"for scatter points
Input: Array of numbers (e.g., [10, 20, 30, 25]) or array of objects with a value field (e.g., [{"value": 10}, {"value": 20}])
Output: SVG markup string containing the rendered chart
Example:
[Indicator] → [Chart Plot]
[45.2, 46.1, 47.8, 46.5, 48.2]
→ { "svg": "<svg>...</svg>" }
Example with objects:
[Table Query] → [Chart Plot]
[{ "value": 100 }, { "value": 150 }, { "value": 125 }]
→ { "svg": "<svg>...</svg>" }
Tips:
- Line plots work well for time-series data like moving averages or price trends
- Area plots are ideal for showing cumulative values or volume over time
- Scatter plots ("plot") are best for correlation analysis or irregular data points
- Use after the Indicator node to visualize technical indicator values
- Combine with the Merge node to overlay multiple data series
- Save SVG output to a report for persistent chart storage
Inputs
dataRequired
Outputs
svg
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
chart_type | enum(line, area, plot) | No | Type of chart to render |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |