In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to draw real-time graphs in C#. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The details are as follows:
/ / definition of drawing section Int32 Draw_Top;// painting Y start point Int32 Draw_Left;// painting X start point Int32 Draw_EdgeWidth;//X edge width Int32 Draw_EdgeHeight;//Y edge height Int32 Draw_RangeWidth;// painting range width Int32 Draw_RangeHeight;// painting range height Double [] XTDYData = new Double [21]; Int32 ICountDraw=0 Int32 IActualWidth, IActualHeight; Int32 Draw_AdjustX = 20; Int32 Draw_AdjustY = 20; Point StartPoint = new Point (); Point EndPoint = new Point (); Point ZeroPoint = new Point (); Int32 IScalesY = 11; Int32 IScalesX = 21; Int32 IIncrementX; Pen pSpecial = new Pen (Color.Black,1); Pen pCommon = new Pen (Color.Black,2) Font FontTitle = new Font ("Microsoft Yahei", 12); / / the font Font FontText = new Font ("Microsoft Yahei", 9); / / the font SolidBrush SBTitle = new SolidBrush (Color.Red); SolidBrush SBText = new SolidBrush (Color.Black)
Draw a curve in the event of data reception:
/ / display trend graph ICountDraw = ICountDraw + 1; if (ICountDraw = = 21) {for (int iTunes 1)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 263
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.