create_and_save_chart
Create and save statistical charts (line, bar, pie, histogram, scatter, box, heatmap, correlation, multi-series) from data, with customizable labels, colors, and styles.
Instructions
Brief description: Data visualization and chart creation tool, supporting various statistical chart types.
Examples:
create_and_save_chart(chart_type='line', x_data=[1,2,3,4], y_data=[1,4,2,3], title='Line Plot')
create_and_save_chart(chart_type='histogram', data=[1,2,2,3,3,3,4,4,5], filename='histogram_plot')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart_type | Yes | Chart type. Supports: 'bar', 'pie', 'line', 'scatter', 'histogram', 'box', 'heatmap', 'correlation_matrix', 'multi_series_line' | |
| data | No | Single series data for bar, pie, histogram, box plots | |
| x_data | No | X-axis data for line, scatter, multi-series line plots | |
| y_data | No | Y-axis data for line, scatter plots | |
| y_data_series | No | Multi-series Y-axis data for multi-series line plots | |
| series_labels | No | Labels for multi-series plots | |
| matrix_data | No | Matrix data for heatmaps, correlation matrices | |
| labels | No | Data labels for bar charts, pie charts | |
| title | No | Chart title | Statistical Chart |
| xlabel | No | X-axis label | X Axis |
| ylabel | No | Y-axis label | Y Axis |
| filename | No | Save filename without path and extension | |
| format | No | Image format. Supports: 'png', 'jpg', 'svg' | png |
| colors | No | List of custom colors for chart elements | |
| figsize | No | Figure size as (width, height) | |
| dpi | No | Image resolution | |
| style | No | Chart style | whitegrid |
| timestamp | No | Whether to add timestamp to filename | |
| show_values | No | Whether to display value labels on bar charts | |
| horizontal | No | Whether to create horizontal bar chart | |
| trend_line | No | Whether to display trend line on scatter plots | |
| trend_line_color | No | Trend line color | |
| trend_line_equation | No | Trend line equation text | |
| bins | No | Number of bins for histogram | |
| annotate | No | Whether to display numerical annotations on heatmaps | |
| colormap | No | Colormap for heatmaps | viridis |
| color | No | Single color | |
| line_width | No | Line width for line plots | |
| line_style | No | Line style | - |
| marker | No | Marker style | o |
| marker_size | No | Marker size | |
| alpha | No | Transparency level | |
| grid | No | Whether to display grid |