generate_candlestick_chart
Generate candlestick charts for financial data like stock or cryptocurrency prices using OHLC (Open-High-Low-Close) data. Customize chart dimensions, themes, and include volume data for detailed analysis.
Instructions
Generate a candlestick chart for financial data visualization, such as, stock prices, cryptocurrency prices, or other OHLC (Open-High-Low-Close) data.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Data for candlestick chart, such as, [{ date: '2023-01-01', open: 100, high: 110, low: 95, close: 105, volume: 10000 }]. | |
height | No | Set the height of the chart, default is 600px. | |
outputType | No | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the valid ECharts option. | png |
showVolume | No | Whether to show volume chart below candlestick. Default is false. | |
theme | No | Set the theme for the chart, optional, default is 'default'. | default |
title | No | Set the title of the chart. | |
width | No | Set the width of the chart, default is 800px. |