# Chart Separation

This tutorial tells use the DataFrame to save data back to disk

## Separate by Factor

SeparateByFactor() will separate the chart into a grid of subcharts based on the bar groups. It takes in an integer as the number of columns in the grid. If empty, it results in a single-column grid.

Unfortunately, there are some limitations to the usage of this function. The Separate by Factor function can be used with a certain amount of columns and/or factors. And that number is unique to each chart. The following chart displays some of the possible combinations of factors and/or columns. It has the column input with numerical and nonnumerical data and the factor input columns.

Can you use SeparateByFactor with these inputs?
Amount of Column InputAmount of Factor InputBar ChartPie ChartHistogramLine ChartScatter PlotBox PlotViolin Plot
01YesYesNoNoNoNoNo
02NoNoNoNoNoNoNo
1 (non-numerical)0YesYesNoNoNoNoNo
1 (numerical)0NoYesNoNoNoNoNo
1 (non-numerical)1NoNoNoNoNoNoNo
1 (numerical)1YesYesNoNoNoYesYes
1 (non-numerical)2NoNoNoNoNoNoNo
1 (numerical)2YesYesNoNoNoYesYes
2 (non-numerical)0NoNoNoNoNoNoNo
2 (numerical)0NoYesNoNoNoNoNo
2 (non-numerical)1NoNoNoNoYesNoNo
2 (numerical)1YesYesNoNoYesYesYes
2 (non-numerical)2NoNoNoNoNoNoNo
2 (numerical)2NoNoNoNoNoNoNo

## Separate by Series

SeparateBySeries() will separate the chart into a grid of subcharts based on the legend (series). It takes in an integer as the number of columns in the grid. If empty, it results in a single-column grid.

Unfortunately, there are some limitations to the usage of this function. The Separate by Series function can be used with a certain amount of columns and/or factors. And that number is unique to each chart. The following chart displays some of the possible combinations of factors and/or columns. It has the column input with numerical and nonnumerical data and the factor input columns.

Can you use SeparateBySeries with these inputs?
Amount of Column InputAmount of Factor InputBar ChartPie ChartHistogramLine ChartScatter PlotBox PlotViolin Plot
01NoYesNoNoNoNoNo
02NoNoNoNoNoNoNo
1 (non-numerical)0NoYesNoNoNoNoNo
1 (numerical)0NoYesNoNoNoNoNo
1 (non-numerical)1NoNoNoNoNoNoNo
1 (non-numerical)2NoNoNoNoNoNoNo
1 (numerical)2YesYesNoNoNoYesYes
2 (non-numerical)0NoNoNoNoNoNoNo
2 (numerical)0YesYesYesYesNoNoNo
2 (non-numerical)1NoNoNoNoYesNoNo
2 (numerical)1NoYesNoNoYesYesYes
2 (non-numerical)2NoNoNoNoNoNoNo
2 (numerical)2NoNoNoNoNoNoNo

## Next Tutorial

In the next tutorial, we will discuss general usage charts functions, which describes how to customize data charts even further.