zedgraph

WInforn中设置ZedGraph的焦点显示坐标格式化以及显示三个坐标数的解决办法

橙三吉。 提交于 2019-11-30 22:26:27
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 Winform中实现ZedGraph的多条Y轴(附源码下载): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 ZedGraph设置显示坐标值 zgc.IsShowCursorValues = true; 但是在刷新曲线图之后出现了鼠标焦点出现三个坐标值 解决方法是在其鼠标焦点悬浮事件中格式化其要显示的值,修改为举例最近的去曲线上的点。 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 //显示焦点值事件 zgc.CursorValueEvent += zgc_CursorValueEvent; 然后在方法中 private static string zgc_CursorValueEvent(ZedGraphControl sender, GraphPane pane, Point mousePt) { CurveItem nearstCurve; int

Winform中设置ZedGraph的曲线符号Symbol以及对应关系

余生颓废 提交于 2019-11-30 22:14:58
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 Winform中实现ZedGraph的多条Y轴(附源码下载): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 添加多条曲线后,会默认生成不带任何Symbol的曲线,如果要修改其曲线的Symbol。 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 LineItem myCurve = myPane.AddCurve(yList[i].Title, DataChartHelper.SetCurveText(interval, xAttribute.TitleKey, yList[i].TitleKey), System.Drawing.ColorTranslator.FromHtml(yList[i].Color), SymbolType.None); 其中: SymbolType.None 就是不带任何标志,如果要修改其标识。 SymbolType

Winform中实现ZedGraph不显示y=0这条刻度线

久未见 提交于 2019-11-30 13:23:40
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 Winform中实现ZedGraph的多条Y轴(附源码下载): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 在上面实现显示多条自定义Y轴的效果上,发现每增加一条Y轴就会在曲线图上增加一条y=0的曲线图。 怎样在新增YAxis时不显示y=0这条曲线。 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 在生成YAxis以及Y2AXis时设置其IsZeroLine属性为false。 mypane.YAxis.MajorGrid.IsZeroLine = false; mypane.Y2Axis.MajorGrid.IsZeroLine = false; 如果说设置了之后不起作用,看一下有没有设置这条代码: myPane.YAxis.MajorGrid.IsVisible = false; 其默认值是true,将其删掉或者注释掉,否则不起作用。 效果 来源:

Can the ZedGraph charting library for .NET be recommended? [closed]

送分小仙女□ 提交于 2019-11-30 12:56:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am working on a project for my company, and I need to integrate some graphs of different types and average complexity to C# in the process of studying stock markets. I found this free library on the Internet, ZedGraph. If you came across it, do you recommend using it? And how well is it supported? 回答1: I can

Charting massive amounts of data

别来无恙 提交于 2019-11-30 06:42:32
We are currently using ZedGraph to draw a line chart of some data. The input data comes from a file of arbitrary size, therefore, we do not know what the maximum number of datapoints in advance. However, by opening the file and reading the header, we can find out how many data points are in the file. The file format is essentially [time (double), value (double)]. However, the entries are not uniform in the time axis. There may not be any points between say t = 0 sec and t = 10 sec, but there might be 100K entires between t = 10 sec and t = 11 sec, and so on. As an example, our test dataset

Change zedgraph pane background color

 ̄綄美尐妖づ 提交于 2019-11-30 03:57:59
问题 Is it possible to change the background color (white by default) of a zedgraph pane? I tried changing the background color of the zedgraph element, but it doesn't give any visible result, background is still white: ZedGraphControl.BackColor = System.Drawing.Color.Black; And there doesn't seem to exist a Color or BackColor property on ZedGraphControl.GraphPane . 回答1: You can use zg.GraphPane.Chart.Fill.Color = SystemColors.ControlText; to change the background [only] of the chart. If you want

Winform中设置ZedGraph的字体和间距不随图形的缩放而缩放

我与影子孤独终老i 提交于 2019-11-30 03:47:23
场景 C#窗体应用中使用ZedGraph曲线插件绘制图表: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/99716066 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 https://www.cnblogs.com/badaoliumangqizhi/p/11422087.html 在上面已经实现的效果为: 可以看到随着图形的缩小,相应的字体和间距等也被缩小,需要设置 字体大小和tic大小将始终完全符合指定的大小,而不进行任何缩放。 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 通过查找其手册文档,找到这么一个属性。 官方原文说明: Determines if the font sizes, tic sizes, gap sizes, etc. will be scaled according to the size of the Rect and the BaseDimension. If this value is

Winform中设置ZedGraph因设置小刻度导致的竖直虚线显示过多

耗尽温柔 提交于 2019-11-30 03:14:41
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 https://www.cnblogs.com/badaoliumangqizhi/p/11422087.html 在上面对ZedGraph的属性进行设置后导致曲线图出现众多竖直虚线。 实现 这是因为对ZedGraph设置了小刻度,将其设置为false即可。 ZedGraphControl zgc GraphPane myPane = new GraphPane(); /获取控件的Pane myPane = zgc.GraphPane; //显示小刻度 是false则看不到效果 myPane.XAxis.MinorGrid.IsVisible = false; 修改之后 来源: https://www.cnblogs.com/badaoliumangqizhi/p/11549866.html

Winform中跨窗体设置Zedgraph的属性并刷新曲线图

只愿长相守 提交于 2019-11-29 18:29:10
场景 在使用ZedGraph时,经常有图形选项功能,设置曲线图相关属性后, 点击保存会设置另一个窗体的属性并刷新图。 效果 实现 在设置图形的选项的类中,声明委托和事件 //委托的定义 public delegate void ReloadPanelDelegete(); //事件声明 public static event ReloadPanelDelegete reloadPanelEvent; 在当前窗体的确定按钮的点击事件中 将相关曲线图的Y轴以及X轴的相关属性存到xml配置文件中,然后调用方法 去刷新曲线图,使其重新加载。 private void confirmbButton_Click(object sender, EventArgs e) { #region 获取X轴的属性并赋值给XAxisModel //对X轴的属性配置文件进行保存 //根据控件的 System.Windows.Forms.Control.Name 属性搜索控件并生成由所有匹配项组成的数组。 //如果搜索所有子控件,则为 true;否则为 false。 XAxisModel xAxisModel = new XAxisModel(); //获取标题 RadioGroup radioGroupX = this.Controls.Find("radioGroupX", true)[0] as

How to miss points in a ZedGraph line graph in C#

只愿长相守 提交于 2019-11-29 15:51:52
I have bit of code that draws nice line charts in ZedGraph . I can not change the code entirely, but I would like to have some of the lines not have a y value for each point on the x-axis. I can do this in Excel, but I don't know how to in ZedGraph. I create graph with .AddCurve . How do I do this? NaN values should do the trick. If you want to break the line for example between x=1 and x=2, just add a point (1.5, double.NaN). Zedgraph should make the gap by itself. 来源: https://stackoverflow.com/questions/5154848/how-to-miss-points-in-a-zedgraph-line-graph-in-c-sharp