mschart

ASP.NET Chart Control errors in Event Viewer

给你一囗甜甜゛ 提交于 2019-12-08 05:14:18
I have been using the ASP.NET chart controls for a while on win2k3 (32bit) setups without any issue but have noticed that on our new win2k8 (64bit) box I am getting a warning message showing up in the event viewer from the chart control. In my web.config file I have the following tag telling the Chart Control where I can store the Temp Files: <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /> Below is the warning message produced by the control: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 10/7/2009 2:40:03 PM Event time

C# MSChart Candle Stick & Moving Average Chart. Error: Formula error - There are not enough data points for the Period

廉价感情. 提交于 2019-12-08 05:06:39
问题 You cannot vote on your own post 0 I am trying to create a stock candle with MA(15) on daily data. I can create a chart with OHLC bar without any problem. But when I started usingDataManipulator.FinancialFormula for MA, I keep getting errors of "Formula error - There are not enough data points for the Period." Can someone help me out on this? Thanks Here is the code. DataSet ds = new DataSet(); SqlConnection connection = new SqlConnection(); connection.ConnectionString = @"Data Source=XXX

get chart value in point

和自甴很熟 提交于 2019-12-08 03:40:07
问题 For example I have chart with 2 points - 0,0 and 10,10 and chart type is FastLine. I want to know what Y value will be in chart in choosen X value. For example when X is 5 I want to know that Y is 5. My charts more complicated and have tons of points, I need to get Y value through X. How can I do this? 回答1: The problem boils down to two tasks: Finding the neighbouring points for an x-value Interpolating their y-values for the given x-value. If the x-values are indeed steadily increasing this

How to do aligned scrolling through two chart areas without using AlignToChartArea?

倖福魔咒の 提交于 2019-12-08 02:54:03
问题 I have two ChartArea objects in a Chart ( System.Windows.Forms.DataVisualization.Charting is what I'm using). One is a Point graph, and the other is a RangeBar graph. The horizontal axis on the RangeBar graph is actually the Y axis, so I cannot just use something like this: Chart1.ChartAreas["Chart Area 2"].AlignWithChartArea = "Default"; I've figured out how to zoom both charts and keep them aligned, but when I try to scroll both charts by clicking on the scrollbar on one of the horizontal

#VALX value in MS Chart in C# isn't coming in “M/d H:mm” format

半世苍凉 提交于 2019-12-08 01:56:45
问题 I wrote the following Winforms code: chart1.ChartAreas[0].AxisX.LabelStyle.Format = "M/d H:mm "; This makes my X-axis seen as, for example 11/25 8:00. But when I provide the tooltip for the datapoints it just provides the date and not the format "M/d H:mm". Here is my code: chart1.Series[0].ToolTip = "Computer Name: #SERIESNAME \nDate & Time: #VALX \nLevel: #VALY";` And the tooltip result which I got was this: Computer Name: COMP NAME Date & Time: 11/25/2013 Level: 4 I want the "Date & Time"

C# MS Chart Control - two questions

泄露秘密 提交于 2019-12-08 01:20:23
问题 So I've made this range bar chart with the MS Chart Control. I have two questions: How can I implement an event handler for when the user double clicks a series? I can't see one anywhere. For some reason the scrollbar on my X Axis (which, amusingly, the Chart Control seems to think is the Y Axis...) seems to be partially transparent for some reason...can anyone shed any light as to why that might be? Here's my code so far, bastardised from a PDF I found somewhere on the net (yeah, I know, it

get chart value in point

跟風遠走 提交于 2019-12-07 16:08:27
For example I have chart with 2 points - 0,0 and 10,10 and chart type is FastLine. I want to know what Y value will be in chart in choosen X value. For example when X is 5 I want to know that Y is 5. My charts more complicated and have tons of points, I need to get Y value through X. How can I do this? The problem boils down to two tasks: Finding the neighbouring points for an x-value Interpolating their y-values for the given x-value. If the x-values are indeed steadily increasing this should solve both: double interpolatedY(Series s, double xval) { DataPoint pPrev = s.Points.Last(x => x

谈谈Ms Chart和TeeChart的优缺点

耗尽温柔 提交于 2019-12-07 10:34:47
下面我对 Ms Chart 和 TeeChart for .Net 的优缺点进行了列举,商业控件和免费控件的区别与优劣一览无遗。 1、Ms Chart 微软封装好的免费的图表控件,其前身是Dundas Chart,微软收购以后做得最好的一款图表。其原理是根据所配置的图表类型及绑定的数据生成一张张图片,然后在页面上显示相应的图片。 >>附: Ms Chart下载 优点: 免费 功能强大,涵盖了各行各业所需的各种图表 文档、实例丰富 图表效果不错 缺点: 只能用于.Net 3.5及以上 使用麻烦,需进行各种配置,如果配置出错则无法显示 处理大数据量速度慢 应用面窄,无法在页面中大量使用,在ASP.NET下使用起来比较麻烦 2、TeeChart for .Net 如果你想要一款在ASP.NET 中支持多种图表类型且性能稳定,价格又不高的图表控件,TeeChart for .Net 无疑是很好的选择。Steema公司和慧都联合推出完整TeeChart for .NET汉化版,一共汉化资源2000个词条(17000个单词),汉化文档35000个单词,总汉化90%以上,完全为开发扫清了语言障碍。 >>附: TeeChart for .Net汉化版下载 优点: 功能强大,性能稳定 图表及仪表类型丰富 价格不高,单机分发完全免费 支持条状图、折线图、饼图等分析图像,还支持仪表盘

C# Setting FontDialog to only display TrueType fonts

早过忘川 提交于 2019-12-07 00:34:59
问题 This question has been asked in practically every forum, including here but there are no acceptable answers anywhere that I can find. I'm beginning to think that there is actually no solution and I just have to wrap my code in a try/catch block and apologise to the user and ask them to pick another font. I want to show a FontDialog so that a user can change the fonts on a Chart , however if the user selects a non-TrueType font, then an exception is thrown. GDI+ can only handle TrueType fonts.

C# MSChart Candle Stick & Moving Average Chart. Error: Formula error - There are not enough data points for the Period

穿精又带淫゛_ 提交于 2019-12-06 16:32:26
You cannot vote on your own post 0 I am trying to create a stock candle with MA(15) on daily data. I can create a chart with OHLC bar without any problem. But when I started usingDataManipulator.FinancialFormula for MA, I keep getting errors of "Formula error - There are not enough data points for the Period." Can someone help me out on this? Thanks Here is the code. DataSet ds = new DataSet(); SqlConnection connection = new SqlConnection(); connection.ConnectionString = @"Data Source=XXX;Database=Stock;Integrated Security=SSPI;"; connection.Open(); string sql = "Select datestamp, highprice,