TeeChart for .NET Q & Tutorial: How to set the color chart drawing area?

    TeeChart for .NET charting component library offers hundreds of 2D and 3D graphic style, 54 kinds of arithmetic and statistical functions as well as an unlimited number of axes and 14 toolbox for your choice. The chart control can also be effectively used to create a multi-tasking dashboard. 


Q: I looked at each setting TChart Properties dialog box, but I can not set the color of the drawing area of the chart, hoping to help.

clientarea.jpg

A: Hello, want to solve this problem is very simple, you can do the following code.

		private void InitializeChart()
		{
			tChart1.Panel.Color = Color.Red;
			tChart1.Walls.Back.Visible = true;
			tChart1.Walls.Back.Transparent = false;
			tChart1.Walls.Back.Gradient.Visible = false;
			tChart1.Walls.Back.Color = Color.Yellow;
		}

Through the code you will get the following chart:

TeeChartPro_2018-12-05_08-50-32.png

    I hope the above questions and answers can help you, if you have any doubts or suggestions can leave a message in the comments area.

Guess you like

Origin blog.51cto.com/14477114/2433392