简体   繁体   English

zedgraph C#datetime如何?

[英]zedgraph C# datetime how to?

I'm reading a MySQL database where a table has bid, ask, price_datetime (where price_datetime is down to the second). 我正在读取一个MySQL数据库,其中一个表具有要价,要价,price_datetime(其中price_datetime降至第二个)。 I'm trying to get 2 line graphs going where the X axis is the price_datetime column and the first line is bid and second is ask. 我正在尝试获得2个折线图,其中X轴是price_datetime列,第一行是bid,第二行是Ask。

I can't seem to get this working. 我似乎无法正常工作。 I've seen ZedGraph - I am looking for an example of using a DateTime but it didn't work for me. 我看过ZedGraph-我正在寻找使用DateTime的示例,但它对我不起作用。 The example page no longer exists. 示例页面不再存在。

Any ideas? 有任何想法吗?

The answer should be as in the question you link to. 答案应该与您链接到的问题相同。 You must convert to XDate before plotting - and of course the axes should be configured to be a Date axis. 绘制之前必须先转换为XDate-当然,轴应配置为“日期”轴。

I see a lot of the ZedGraph website has 404 errors, but there seems to be a nice tutorial on codeproject . 我看到许多ZedGraph网站都有404错误,但似乎有一个关于projectproject的不错的教程。 About half way down the page there is a Date-time axis example. 在页面的大约一半处,有一个日期时间轴示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM