chart1->ChartAreas[0]->AxisY->Title = L"Kg";

	//Set max / min
	chart1->ChartAreas[0]->AxisY->Minimum = 0;
	chart1->ChartAreas[0]->AxisY->Maximum = 1000;

	//Set tool tip text
	chart1->Series[0]->ToolTip = "#VALX\n#VAL Kg";	//To get possible expressions go to the charts
									//Series > Map Area > Tool Tip property

	//Set individual bar colours
	chart1->Series[0]->Points[0]->Color = Color::Orange;	//Point value is point index to set colour of.  Set colour after databind


	//Invalidate chart to update it

Causing Chart To Update

	//Invalidate chart to update it

Changing Format Of X Axis Lables

chart.ChartAreas[0].AxisX.LabelStyle.IntervalType = DateTimeIntervalType.Seconds;
chart.ChartAreas[0].AxisX.LabelStyle.Format = "T";	//Set DateTime type to display as time not date

Good Resources

We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.


Your email address will not be published.