📄 frmwellgp.cs
字号:
}
}
Pepco1.PeString.SubsetLabels[0] = "丢失记录";
Pepco1.PeString.PointLabels[0] = "东城区";
Pepco1.PeString.PointLabels[1] = "西城区";
Pepco1.PeString.PointLabels[2] = "朝阳区";
Pepco1.PeString.PointLabels[3] = "海淀区";
Pepco1.PeString.PointLabels[4] = "宣武区";
Pepco1.PeString.PointLabels[5] = "崇文区";
Pepco1.PeString.PointLabels[6] = "石景山区";
Pepco1.PeString.PointLabels[7] = "丰台区";
Pepco1.PeString.PointLabels[8] = "通州区";
Pepco1.PeString.PointLabels[9] = "顺义区";
Pepco1.PeString.PointLabels[10] = "房山区";
Pepco1.PeString.PointLabels[11] = "大兴区";
Pepco1.PeString.PointLabels[12] = "门头沟区";
// Set Slice Colors //
Pepco1.PeColor.SubsetColors[0] = Color.FromArgb(198, 0, 0);
Pepco1.PeColor.SubsetColors[1] = Color.FromArgb(0, 198, 0);
Pepco1.PeColor.SubsetColors[2] = Color.FromArgb(198, 198, 0);
Pepco1.PeColor.SubsetColors[3] = Color.FromArgb(0, 0, 198);
Pepco1.PeColor.SubsetColors[4] = Color.FromArgb(198, 0, 198);
Pepco1.PeColor.SubsetColors[5] = Color.FromArgb(0, 198, 198);
Pepco1.PeColor.SubsetColors[6] = Color.FromArgb(192, 192, 192);
Pepco1.PeColor.SubsetColors[7] = Color.FromArgb(198, 0, 0);
Pepco1.PeColor.SubsetColors[8] = Color.FromArgb(0, 198, 0);
Pepco1.PeColor.SubsetColors[9] = Color.FromArgb(198, 198, 0);
Pepco1.PeColor.SubsetColors[10] = Color.FromArgb(0, 148, 148);
Pepco1.PeColor.SubsetColors[11] = Color.FromArgb(122, 122, 122);
Pepco1.PeColor.SubsetColors[12] = Color.FromArgb(100, 0, 100);
// Set Titles //
Pepco1.PeString.MainTitle = "各区域井盖丢失比较";
Pepco1.PeString.SubTitle = "";
// Set various other properties //
Pepco1.PeUserInterface.Allow.FocalRect = false;
Pepco1.PeData.Precision = DataPrecision.OneDecimal;
Pepco1.PePlot.GroupingPercent = GroupingPercent.FourPercent;
Pepco1.PePlot.DataShadows = DataShadows.ThreeDimensional;
Pepco1.PePlot.Show3DShadow = true;
Pepco1.PeUserInterface.AutoExplode = AutoExplode.AllSubsets;
Pepco1.PeConfigure.PrepareImages = true;
Pepco1.PeConfigure.CacheBmp = true;
Pepco1.PeFonts.FontSize = FontSize.Large;
Pepco1.PeFonts.Fixed = true;
Pepco1.PeColor.BitmapGradientMode = true;
Pepco1.PeColor.QuickStyle = QuickStyle.MediumNoBorder;
Pepco1.PeConfigure.TextShadows = TextShadows.BoldText;
Pepco1.PeFonts.MainTitle.Bold = true;
Pepco1.PeFonts.SubTitle.Bold = true;
Pepco1.PeFonts.Label.Bold = true;
Pepco1.PeFonts.FontSize = FontSize.Large;
}
else if(m_nChart == 301)
{
//*********************************************************************'
//*********************************************************************'
//301 Pie Chart showing exploded slices
//! Double click slice label to explode. //
//! Use vertical scrollbar to revolve through subset. //
// This example builds upon the basic CreateSimplePie '300' example chart //
CreateSimplePie();
// Explode 4th and 6th slices ///
Pepco1.PeData.Y[0, 3] = 1;
Pepco1.PeData.Y[0, 5] = 1;
// Set various other properties //
Pepco1.PeColor.BitmapGradientMode = false;
Pepco1.PeColor.QuickStyle = QuickStyle.MediumShadow;
// Add Some Padding on Right and Bottom //
Pepco1.PeConfigure.ImageAdjustLeft = 400;
Pepco1.PeConfigure.ImageAdjustRight = 400;
Pepco1.PeConfigure.ImageAdjustBottom = 400;
}
else if(m_nChart == 302)
{
//*********************************************************************'
//*********************************************************************'
//302 Pie Chart showing optional legend
//! Double click slice label to explode. //
// This example builds upon the basic CreateSimplePie '300' example chart //
CreateSimplePie();
// Change Data //
Pepco1.PeData.Subsets = 1;
Pepco1.PeData.Points = 5;
for( p = 0; p <= 4; p++)
Pepco1.PeData.X[0, p] = (float)((Rand_Num.NextDouble() * 5) + ((Rand_Num.NextDouble() * 100) / 100.0F));
Pepco1.PeLegend.ShowPieLegend = true;
Pepco1.PePlot.ShowPieLabels = ShowPieLabels.PercentOnly;
Pepco1.PeLegend.Location = LegendLocation.Left;
Pepco1.PePlot.Show3DShadow = false;
// Set various other properties //
Pepco1.PeColor.BitmapGradientMode = true;
Pepco1.PeColor.QuickStyle = QuickStyle.MediumInset;
// Add Some Padding on Right and Bottom //
Pepco1.PeConfigure.ImageAdjustLeft = 400;
Pepco1.PeConfigure.ImageAdjustRight = 400;
Pepco1.PeConfigure.ImageAdjustBottom = 400;
}
else if(m_nChart == 303)
{
//*********************************************************************'
//*********************************************************************'
//303 Pie Chart showing optional shadow
//! Double click slice label to explode. //
// This example builds upon the basic CreateSimplePie '300' example chart //
CreateSimplePie();
Pepco1.PePlot.DropShadowSteps = 12; // larger numbers mean slower image
Pepco1.PePlot.DropShadowWidth = 200; // optional, default 200, range 50 to 300
Pepco1.PePlot.DropShadowOffsetX = 50; // optional, default 50
Pepco1.PePlot.DropShadowOffsetY = 50; // optional, default 50
// Change Data //
Pepco1.PeData.Subsets = 1;
Pepco1.PeData.Points = 7;
for( p = 0; p <= 6; p++)
Pepco1.PeData.X[0, p] = (float)((Rand_Num.NextDouble() * 5) + ((Rand_Num.NextDouble() * 100) / 100.0F));
// Explode 3rd and 6th slices //
Pepco1.PeData.Y[0, 2] = 1;
Pepco1.PeData.Y[0, 5] = 1;
// Set various other properties //
Pepco1.PeColor.BitmapGradientMode = false;
Pepco1.PeColor.QuickStyle = QuickStyle.LightShadow;
// Add Some Padding on Right and Bottom //
Pepco1.PeConfigure.ImageAdjustLeft = 400;
Pepco1.PeConfigure.ImageAdjustRight = 400;
Pepco1.PeConfigure.ImageAdjustBottom = 400;
}
else if(m_nChart == 304)
{
//*********************************************************************'
//*********************************************************************'
//304 Pie Chart showing hatching
//! Double click slice label to explode. //
//! Use vertical scrollbar to revolve through subset. //
// This example builds upon the basic CreateSimplePie '300' example chart //
CreateSimplePie();
// Change Data //
Pepco1.PeData.Subsets = 5;
Pepco1.PeData.Points = 6;
for( s = 0; s <= 4; s++)
{
for( p = 0; p <= 5; p++)
Pepco1.PeData.X[s, p] = (float)((Rand_Num.NextDouble() * 5) + ((Rand_Num.NextDouble() * 100) / 100.0));
}
Pepco1.PePlot.SubsetHatch[0] = HatchType.BDiagonal;
Pepco1.PePlot.SubsetHatch[1] = HatchType.Cross;
Pepco1.PePlot.SubsetHatch[2] = HatchType.Vertical;
Pepco1.PePlot.SubsetHatch[3] = HatchType.FDiagonal;
Pepco1.PePlot.SubsetHatch[4] = HatchType.Horizontal;
Pepco1.PePlot.SubsetHatch[5] = HatchType.DiagonalCross;
Pepco1.PeColor.HatchBackColor = Color.FromArgb(230, 230, 230);
Pepco1.PePlot.SliceHatching = SliceHatching.MonochromePlusColor;
// Explode 2nd and 4th slices //
Pepco1.PeData.Y[0, 1] = 1;
Pepco1.PeData.Y[0, 3] = 1;
Pepco1.PePlot.Show3DShadow = false;
Pepco1.PePlot.DataShadows = DataShadows.ThreeDimensional;
// Set various other properties //
Pepco1.PeColor.BitmapGradientMode = true;
Pepco1.PeColor.QuickStyle = QuickStyle.MediumLine;
// Add Some Padding on Right and Bottom //
Pepco1.PeConfigure.ImageAdjustLeft = 400;
Pepco1.PeConfigure.ImageAdjustRight = 400;
Pepco1.PeConfigure.ImageAdjustBottom = 400;
}
///end if
Pepco1.PeFunction.Reinitialize();
Pepco1.PeFunction.ReinitializeResetImage();
Pepco1.Invalidate();
this.Visible = true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -