vimsheet.plotting.chart

Spreadsheet chart rendering — ASCII fallback, plotext when available.

class vimsheet.plotting.chart.ChartSpec(chart_type='bar', data_range='', title='', x_label='', y_label='', width=60, height=20, series_names=<factory>)[source]

Bases: object

Specification for a chart to render.

Parameters:
chart_type: str = 'bar'
data_range: str = ''
title: str = ''
x_label: str = ''
y_label: str = ''
width: int = 60
height: int = 20
series_names: list[str]
__init__(chart_type='bar', data_range='', title='', x_label='', y_label='', width=60, height=20, series_names=<factory>)
Parameters:
Return type:

None

vimsheet.plotting.chart.render_chart(sheet, spec)[source]

Return a multi-line string containing the rendered chart.

Backend priority: textual-plotext → plotext → gnuplot → ASCII fallback.

Parameters:
Return type:

str