Inserting charts
Insert a recommended chart
The easiest way to insert a chart in the Spreadsheet Editor is to use the Recommended Chart tool, which suggests using certain types of charts depending on the selected data, as well as displays preview for all types of charts.
- Select the cell range that contains the data you wish to use for the chart.
- Switch to the Insert tab of the top toolbar.
- Click the Recommended Chart icon on the top toolbar.
- Switch between the recommended chart types to see how the chart will look like. You can also use tabs on the left to preview other chart types.
- When the chart type is selected, click OK.

Insert and adjust a chart manually
To insert a chart and manually adjust its parameters,
-
Select the cell range that contains the data you wish to use for the chart.
-
Switch to the Insert tab of the top toolbar.
-
Click the
Chart icon on the top toolbar.
-
Select the needed chart type from the available ones:
Column Charts
- Clustered column
- Stacked column
- 100% stacked column
- 3-D Clustered Column
- 3-D Stacked Column
- 3-D 100% stacked column
- 3-D Column
Line Charts
- Line
- Stacked line
- 100% stacked line
- Line with markers
- Stacked line with markers
- 100% stacked line with markers
- 3-D Line
Pie Charts
- Pie
- Doughnut
- 3-D Pie
Bar Charts
- Clustered bar
- Stacked bar
- 100% stacked bar
- 3-D clustered bar
- 3-D stacked bar
- 3-D 100% stacked bar
Area Charts
- Area
- Stacked area
- 100% stacked area
Stock Charts
XY (Scatter) Charts
- Scatter
- Scatter with smooth lines and markers
- Scatter with smooth lines
- Scatter with straight lines and markers
- Scatter with straight lines
Radar Charts
- Radar
- Radar with markers
- Filled radar
Combo Charts
- Clustered column — line
- Clustered column — line on secondary axis
- Stacked area — clustered column
- Custom combination
After that, the chart will be added to the worksheet.
ONLYOFFICE Spreadsheet Editor supports the following types of charts that were created with third-party editors: Pyramid, Bar (Pyramid), Horizontal/Vertical Cylinders, Horizontal/Vertical Cones. You can open the file containing such a chart and modify it using the available chart editing tools. The following types are supported for opening only: Histogram, Waterfall, Funnel, Explosion.
Assign a macro to a chart
You can provide a quick and easy access to a macro within a spreadsheet by assigning a macro to any chart. Once you assign a macro, the chart appears as a button control, and you can run the macro whenever you click it.
To assign a macro:
-
Right-click the chart to assign a macro to and choose the Assign Macro option from the drop-down menu.
-
The Assign Macro dialogue will open.
-
Choose a macro from the list, or type in the macro name, and click OK to confirm.
Once a macro is assigned, you can still select the chart to perform other operations by left-clicking on the chart surface.
Using sparklines
ONLYOFFICE Spreadsheet Editor supports Sparklines. Sparklines are small charts that fit into a cell, and are an efficient data visualization tool. For more information about how to create, edit and format sparklines, please see our Insert Sparklines guidelines.
Learn more about working with charts:
Chart Design tab and chart data
Use the Chart Design tab to change the chart type, design, size and 3D rotation in the Spreadsheet Editor, and edit the data range, series and axis labels in the Chart data window.
Chart advanced settings
Set the chart layout, axes, cell snapping and alternative text in the Chart — Advanced Settings window of the Spreadsheet Editor.
Editing chart elements
Edit the title, text, fill, lines and other elements of a chart in the Spreadsheet Editor and choose which elements to show.