render_chart
Generate PNG charts from market data using Chart.js configurations. Create line, bar, pie, and scatter visualizations to analyze financial trends, compare assets, and display statistical distributions.
Instructions
Render a Chart.js chart and return the PNG image. Accepts a full Chart.js configuration object (type, data, options). Supports all Chart.js chart types: line, bar, pie, doughnut, radar, polarArea, bubble, scatter. Use this after fetching market data to visualize trends, comparisons, or distributions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Chart.js configuration as a JSON string. Must include "type" and "data" fields. Example: {"type":"line","data":{"labels":["Jan","Feb"],"datasets":[{"label":"Price","data":[100,105]}]},"options":{}} | |
| width | No | Chart width in pixels (default: 800) | |
| height | No | Chart height in pixels (default: 400) |