ProEssentials动画演示1:制作简单图表

工业控制图表制作工具ProEssentials大家都比较熟悉吧,在科学计算、工业控制、金融统计等行业中 都有出色的表现, ProEssentials 7已经早早发售了,ProEssentials 8,已经在路上。今天开始,我们要为大家带来ProEssentials的动画演示,制作的版本是ProEssentials 8测试版(内测版本,暂时还未发售),我们提前来体验一下ProEssentials 8,看看是不是惊喜依旧。在演示中,我们还会提供相应图表的代码,方便大家实践操作。

今天我们先热热身,来看看用ProEssentials制作简单图表。


ProEssentials动画演示1:制作简单图表_第1张图片

代码:

点击(此处)折叠或打开

  1. //! Right button click to show popup menu. //
  2. //! Double Click to show customization dialog. //
  3. //! Left-Click and drag to draw zoom box. Use popup memu or \'z\' to undo zoom. //
  4.  
  5. // Simple example show the basics of a graph object. //
  6. // Graph\'s generally only contain YData because we assume
  7. // data is plotted equally spaced left to right.
  8.  
  9. int s, p;
  10.  
  11. // Enable Bar Glass Effect //
  12. Pego1.PePlot.Option.BarGlassEffect = true;
  13.  
  14. // Enable Plotting style gradient and bevel features //
  15. Pego1.PePlot.Option.AreaGradientStyle = PlotGradientStyle.RadialBottomRight;
  16. Pego1.PePlot.Option.AreaBevelStyle = BevelStyle.MediumSmooth;
  17. Pego1.PePlot.Option.SplineGradientStyle = PlotGradientStyle.RadialBottomRight;
  18. Pego1.PePlot.Option.SplineBevelStyle = SplineBevelStyle.MediumSmooth;
  19.  
  20. // v7.2 new features //
  21. Pego1.PePlot.Option.PointGradientStyle = PlotGradientStyle.VerticalAscentInverse;
  22. Pego1.PeColor.PointBorderColor = Color.FromArgb(100, 0, 0, 0);
  23. Pego1.PePlot.Option.LineSymbolThickness = 3;
  24. Pego1.PePlot.Option.AreaBorder = 1;
  25. Pego1.PeUserInterface.Dialog.AllowSvgExport = true;
  26.  
  27. // Prepare images in memory //
  28. Pego1.PeConfigure.PrepareImages = true;
  29.  
  30. // Pass Data //
  31. Pego1.PeData.Subsets = 4;
  32. Pego1.PeData.Points = 12;
  33.  
  34. for(s = 0; s <= 3; s++)
  35. {
  36. for(p = 0; p < 12; p++)
  37. {
  38. Pego1.PeData.Y[s, p] = ((p + 1) * 50) + ((float)(Rand_Num.NextDouble()) * 250) + 2 + 700.0F - ((s * 140.0F));
  39. }
  40. }
  41.  
  42. Pego1.PePlot.DataShadows = DataShadows.Shadows;
  43. Pego1.PeUserInterface.Allow.FocalRect = false;
  44. Pego1.PePlot.Method = GraphPlottingMethod.Area;
  45. Pego1.PeGrid.LineControl = GridLineControl.Both;
  46. Pego1.PeGrid.Style = GridStyle.Dot;
  47. Pego1.PePlot.Allow.Ribbon = true;
  48. Pego1.PeUserInterface.Allow.Zooming = AllowZooming.HorzAndVert;
  49. Pego1.PeUserInterface.Allow.ZoomStyle = ZoomStyle.Ro2Not;
  50.  
  51. // Enable middle mouse dragging //
  52. Pego1.PeUserInterface.Scrollbar.MouseDraggingX = true;
  53. Pego1.PeUserInterface.Scrollbar.MouseDraggingY = true;
  54.  
  55. Pego1.PeString.MainTitle = \


点击(此处)折叠或打开

  1. //! Right button click to show popup menu. //
  2. //! Double Click to show customization dialog. //
  3. //! Left-Click and drag to draw zoom box. Use popup memu or \'z\' to undo zoom. //
  4.  
  5. // Simple example show the basics of a graph object. //
  6. // Graph\'s generally only contain YData because we assume
  7. // data is plotted equally spaced left to right.
  8.  
  9. int s, p;
  10.  
  11. // Enable Bar Glass Effect //
  12. Pego1.PePlot.Option.BarGlassEffect = true;
  13.  
  14. // Enable Plotting style gradient and bevel features //
  15. Pego1.PePlot.Option.AreaGradientStyle = PlotGradientStyle.RadialBottomRight;
  16. Pego1.PePlot.Option.AreaBevelStyle = BevelStyle.MediumSmooth;
  17. Pego1.PePlot.Option.SplineGradientStyle = PlotGradientStyle.RadialBottomRight;
  18. Pego1.PePlot.Option.SplineBevelStyle = SplineBevelStyle.MediumSmooth;
  19.  
  20. // v7.2 new features //
  21. Pego1.PePlot.Option.PointGradientStyle = PlotGradientStyle.VerticalAscentInverse;
  22. Pego1.PeColor.PointBorderColor = Color.FromArgb(100, 0, 0, 0);
  23. Pego1.PePlot.Option.LineSymbolThickness = 3;
  24. Pego1.PePlot.Option.AreaBorder = 1;
  25. Pego1.PeUserInterface.Dialog.AllowSvgExport = true;
  26.  
  27. // Prepare images in memory //
  28. Pego1.PeConfigure.PrepareImages = true;
  29.  
  30. // Pass Data //
  31. Pego1.PeData.Subsets = 4;
  32. Pego1.PeData.Points = 12;
  33.  
  34. for(s = 0; s <= 3; s++)
  35. {
  36. for(p = 0; p < 12; p++)
  37. {
  38. Pego1.PeData.Y[s, p] = ((p + 1) * 50) + ((float)(Rand_Num.NextDouble()) * 250) + 2 + 700.0F - ((s * 140.0F));
  39. }
  40. }
  41.  
  42. Pego1.PePlot.DataShadows = DataShadows.Shadows;
  43. Pego1.PeUserInterface.Allow.FocalRect = false;
  44. Pego1.PePlot.Method = GraphPlottingMethod.Area;
  45. Pego1.PeGrid.LineControl = GridLineControl.Both;
  46. Pego1.PeGrid.Style = GridStyle.Dot;
  47. Pego1.PePlot.Allow.Ribbon = true;
  48. Pego1.PeUserInterface.Allow.Zooming = AllowZooming.HorzAndVert;
  49. Pego1.PeUserInterface.Allow.ZoomStyle = ZoomStyle.Ro2Not;
  50.  
  51. // Enable middle mouse dragging //
  52. Pego1.PeUserInterface.Scrollbar.MouseDraggingX = true;
  53. Pego1.PeUserInterface.Scrollbar.MouseDraggingY = true;
  54.  
  55. Pego1.PeString.MainTitle = \

动画效果请访问:http://evget.com/article/2014/1/15/20408.html,图片制作:慧都控件网-走猫步的鱼

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29430037/viewspace-1073068/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29430037/viewspace-1073068/

你可能感兴趣的:(ProEssentials动画演示1:制作简单图表)