Version

SwapRowsAndColumns Property (DataAppearance)

Gets/sets whether rows and columns are swapped.
Syntax
'Declaration
 
Public Property SwapRowsAndColumns As Boolean
public bool SwapRowsAndColumns {get; set;}
Remarks

When this property is set (it is not set by default), the rows and columns in the DataSource will be transposed to render in the opposite way from which they are typically shown. Rows (series) become columns (items) and columns (items) will become rows (series).

This method can be used to alter a data source that doesn't initially conform to a chart's Data Requirements to become chartable. It can also invalidate a data source that previously met the requirements for a chart type, because the data will no longer do so (in its transposed state).

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also