Skip to main content

Chart Options

When EKB renders a chart in chat, you can adjust how it looks just by asking. Bar thickness, the range and gridline spacing of the value axis, and where the legend sits are all controllable from the prompt — no settings panel needed.

The agent passes your request to the render_chart tool as chart_options. The same options apply to the chart shown in chat and to the chart embedded in a PDF or DOCX export of the conversation.

Asking for a change​

You do not need to know the parameter names. Ask in plain language:

You askWhat the agent sends
"Make the bars wider"bar_width
"Start the Y axis at 0"y_axis_min
"Cap the axis at 500M"y_axis_max
"Show gridlines every 100M"y_tick_interval
"Show every third month label"x_tick_interval
"Put the legend on the right"legend_position
"Turn off the gridlines"show_grid
"Show the value on each bar"show_data_labels

You can combine them in one request — "wider bars, gridlines every 50, legend on the right" is a single chart.

Available options​

bar_width​

Relative thickness of each bar, from 0.1 to 1.0. At 1.0 neighbouring bars touch. Defaults to 0.8.

For a chart with several series, the value describes the group, so the bars within a category stay proportionate.

"Make the bars thinner" → bar_width: 0.3

y_axis_min and y_axis_max​

Force the value axis to a fixed range. Either bound works on its own — setting only y_axis_min starts the axis at that value and lets the top auto-scale.

A reversed range (minimum at or above maximum) is ignored, and the axis falls back to auto-scaling, because an inverted axis is unreadable.

"Start the axis at zero and cap it at 200" → y_axis_min: 0, y_axis_max: 200

y_tick_interval​

Spacing between gridlines and tick labels on the value axis. This is how you ask for "gridlines every 100M" — pass 100000000.

On a stacked chart the interval is calculated from the combined total of each stack, so gridlines cover the full height rather than stopping below the tallest bar.

"Gridlines every 25 million" → y_tick_interval: 25000000

x_tick_interval​

Show every Nth label on the category axis. Useful when a chart has so many categories that the labels overlap.

"Show every third label" → x_tick_interval: 3

legend_position​

Where the legend appears: top, bottom, left, right, or none.

Setting none removes the legend entirely, which is useful when a single series is already named in the chart title.

show_grid​

Draw gridlines. Set to false for a cleaner chart.

show_data_labels​

Print each value directly on the bar. Handy for short reports where the reader should not have to estimate from the axis.

Which charts support which options​

OptionApplies to
bar_widthbar, stacked_bar, horizontal_bar, composed, waterfall
y_axis_min, y_axis_max, y_tick_intervalbar, stacked_bar, horizontal_bar, line, area, scatter, composed, waterfall
x_tick_intervalCharts with a category axis
legend_positionEvery chart type
show_gridEvery cartesian chart
show_data_labelsBar-family charts

Pie, donut, treemap, funnel and radial bar charts have no value axis, so axis range and tick intervals do not apply to them. Asking for one on those chart types is harmless — the option is simply not used.

Invalid values​

An option that cannot be used never costs you the chart. The value is dropped, the chart still renders with its remaining options, and the agent is told which value was rejected so it can correct itself if you still want that change.

For example, bar_width: 5 is clamped to 1.0 rather than failing, and y_axis_min: 50 with y_axis_max: 10 is discarded as a pair.

Scope​

Chart options apply to charts rendered in a chat conversation and to their exports. Dashboard widgets created in the Knowledge Base keep their own stored configuration.