Make a chart (bar, line, area, pie, donut or scatter) from your data and show it in the chat.
Parameters for this action
typestringoptionalKind of chart: bar, line, area, pie, donut, scatter, histogram, heatmap, combo, stacked_percent or forecastspecobjectoptionalAdvanced: a full chart description for chart kinds not listed here. Your assistant normally writes it for youdataarray of objectoptionalThe rows to chart, one object per rowxstringoptionalColumn for the categories or the time axisyanyoptionalColumn(s) with the numbers to plotbinsintegeroptionalHistogram only: number of bars (2 to 100, default 20)linestringoptionalCombo and forecast: the column drawn as a line (forecast: the predicted values)band_lowstringoptionalForecast only: the lower edge of the shaded range (defaults to the 80% low column)band_highstringoptionalForecast only: the upper edge of the shaded range (defaults to the 80% high column)seriesstringoptionalOptional column that splits the rows into several coloured seriestitlestringoptionalTitle shown above the chartx_titlestringoptionalLabel for the x axis (defaults to the column name)y_titlestringoptionalLabel for the y axis (defaults to the column name)x_typestringoptionaldefault: "auto"How to read x: auto, category, number or datestackedbooleanoptionaldefault: falseStack the series on top of each other (bar and area)horizontalbooleanoptionaldefault: falseDraw bars sideways (bar only)sortstringoptionaldefault: "none"Order the bars: none, ascending or descendingvalue_formatstringoptionalNumber format for values, such as ',.0f' or '.1%'widthintegeroptionaldefault: 640Width in pixelsheightintegeroptionaldefault: 360Height in pixels
Example prompts
- >Chart total salary by department as a bar chart
- >Make a donut chart of headcount by team