private void chart1_MouseClick(object sender, MouseEventArgs e)
{
try
{
HitTestResult result = chart1.HitTest(e.X, e.Y);
if (result.ChartElementType == ChartElementType.DataPoint)
{
chart1.Series["myPieSeries"].Points[result.PointIndex].CustomProperties += "Exploded=true";
chart1.Series["myPieSeries"].Points[result.PointIndex].CustomProperties += "PieLabelStyle=Outside";
}
}
catch
{
}