Skip to main content

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.

  1. Select the cell range that contains the data you wish to use for the chart.
  2. Switch to the Insert tab of the top toolbar.
  3. Click the Recommended Chart icon on the top toolbar.
  4. 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.
  5. When the chart type is selected, click OK.

Recommended Chart

Insert and adjust a chart manually​

To insert a chart and manually adjust its parameters,

  1. Select the cell range that contains the data you wish to use for the chart.

  2. Switch to the Insert tab of the top toolbar.

  3. Click the chart icon Chart icon on the top toolbar.

  4. 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.

note

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.

    Assign Macro on Menu

  • The Assign Macro dialogue will open.

  • Choose a macro from the list, or type in the macro name, and click OK to confirm.

    Assign Macro

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: