ColorBar in WPF Surface Chart (SfSurfaceChart)

ColorBar is used to represent the value range in surface via colors. You can define ColorBar for surface chart as shown in the following code example.

<chart:SfSurfaceChart />

	<chart:SfSurfaceChart.ColorBar>

		<chart:ColorBar DockPosition="Right" ></chart:ColorBar>
	   
	</chart:SfSurfaceChart.ColorBar>
	  
<chart:SfSurfaceChart />
SfSurfaceChart surface = new SfSurfaceChart();

surface.ColorBar = new ChartColorBar();

surface.DockPosition = ChartDock.Right;

The following properties are used to customize the ColorBar.

Properties

Name Description
DockPosition

Gets or sets the dock value that is used to position the ColorBar at top, bottom, left and right.

ShowLabel

Gets or sets bool that represent whether showing the label in ColorBar.