mschart

Let column charts overlap in Chart Control

陌路散爱 提交于 2019-12-04 04:46:23
问题 I have following issue: I need to show multiple columns in a chart control (about seven series in one chart area). Now when I have a chart of type "Column" all seven columns get shown side by side. What I want to do is to overlap them. Is this possible? The following two solutions didn't help me: Plotting overlapping column or bar chart Chart control two data set bars overlapping Thank you. 回答1: There is no built-in way to do that. One workaround is to turn on 3-d , but that will completely

MSChart: How to group RangeBar data with text labels instead of indexes?

这一生的挚爱 提交于 2019-12-04 04:33:54
问题 I'm looking to plot data on a RangeBar chart area (System.Windows.Forms.DataVisualization.Charting) and I'm having issues grouping the data when I have text values for the labels on the vertical axis. Here's the pertinent code: var connectedTimeRangeSeries = theChart.Series.Add("ConnectedTimeRangeSeries"); var connectedTimeRangesChartArea = theChart.ChartAreas["PerItemConnectedChartArea"]; connectedTimeRangeSeries.ChartArea = connectedTimeRangesChartArea.Name; connectedTimeRangeSeries

Algorithm for scatter plot 'best-fit' line

对着背影说爱祢 提交于 2019-12-04 04:33:43
I'm writing a small application in C# using MSChart control to do Scatter Plots of sets of X and Y data points. Some of these can be rather large (hundreds of data points). Wanted to ask if there's a 'standard' algorith for plotting a best-fit line across the points. I'm thinking to divide the X data points to a predefined number of sets, say 10 or 20, and for each set take the average of the corresponding Y values and the middle X value, and so on to create the line. Is this a correct approach? I've searched existing threads but they all seem to be about achieving the same using existing

ASP.NET Charting Control not working on production server

三世轮回 提交于 2019-12-03 12:57:54
问题 I have an application that relies heavily on charting and currently the charts will work in the ASP.Net Development Server, but when I try to publish out to my server (Win 2008 Server R2, IIS 7), the charts do not show up. Using Firebug, I can see that the call to ChartImg.axd returns a 404, and all I get is a blank image holder in IE, or nothing in Firefox. I've searched for about 3 or 4 hours so far, and have tried just about everything recommended, but nothing seems to be working. I would

C#学习

戏子无情 提交于 2019-12-03 07:06:27
这几天我决定花一些时间,逐个研究下.NET中的Chart控件。 我的IDE版本为VS2012,.NET框架版本为.NET 4.5 运行本文代码需要用到命名空间System.Windows.Forms.DataVisualization.Charting 1、饼图(SeriesChartType.Pie) 现有一个Chart控件,取名为chart,在程序Load函数中输入如下代码: private void FormMain_Load(object sender, EventArgs e) { //清空chart图表 chart.ChartAreas.Clear(); //图表区 chart.Titles.Clear(); //图表标题 chart.Series.Clear(); //图表序列 chart.Legends.Clear(); //图表图例 //新建chart图表要素 chart.ChartAreas.Add(new ChartArea("chartArea")); chart.ChartAreas["chartArea"].AxisX.IsMarginVisible = false; chart.ChartAreas["chartArea"].Area3DStyle.Enable3D = false; chart.Titles.Add("某行业各公司市场占有率调查报告"

MS Chart Control Zoom MinSize issue

送分小仙女□ 提交于 2019-12-03 06:11:22
I'm implementing a scatter plot using the MS Chart Control .NET 3.5, WinForms, C#. My x-axis data is DateTime and noticed I couldn't zoom in smaller than a resolution of 1 day, despite setting the ScaleView as follows: chart1.ChartAreas["MyChart"].AxisX.ScaleView.MinSize = 4; chart1.ChartAreas["MyChart"].AxisX.ScaleView.MinSizeType = DateTimeIntervalType.Hours; Has anyone else had this issue? Any ideas? Figured this out... perhaps I didn't RTFM close enough, but it wasn't obvious from the interactive demo. Set chart1.ChartAreas["MyChart"].CursorX.Interval = 0; and then it allowed me to zoom

MS Chart for .NET predefined palettes color list?

混江龙づ霸主 提交于 2019-12-03 05:11:42
问题 Microsoft Chart for .NET (3.5, 4.x) has predefined palettes e.g. Berry, Bright, SeaGreen etc. Is there anywhere a list of colors for each palette (hex or named)? Thanks! 回答1: Found this image on Alex Gorev's blog Guess I can use color picker to get actual color names/codes EDIT: Here are the list of colors I extracted: Berry: 8A2BE2,BA55D3,4169E1,C71585,0000FF,8019E0,DA70D6,7B68EE,C000C0,0000CD,800080 Bright: 008000,0000FF,800080,800080,FF00FF,008080,FFFF00,808080,00FFFF,000080,800000,FF3939

see values of chart points when the mouse is on points

Deadly 提交于 2019-12-03 05:07:02
问题 I have a chart and I want the user to see the values when the pointer is on the points. By using digEmAll's help in the page finding the value of the points in a chart ,I could write the following code: Point? prevPosition = null; ToolTip tooltip = new ToolTip(); void chart1_MouseMove(object sender, MouseEventArgs e) { var pos = e.Location; if (prevPosition.HasValue && pos == prevPosition.Value) return; tooltip.RemoveAll(); prevPosition = pos; var results = chart1.HitTest(pos.X, pos.Y, false,

ASP.NET Charting Control not working on production server

拈花ヽ惹草 提交于 2019-12-03 03:53:33
I have an application that relies heavily on charting and currently the charts will work in the ASP.Net Development Server, but when I try to publish out to my server (Win 2008 Server R2, IIS 7), the charts do not show up. Using Firebug, I can see that the call to ChartImg.axd returns a 404, and all I get is a blank image holder in IE, or nothing in Firefox. I've searched for about 3 or 4 hours so far, and have tried just about everything recommended, but nothing seems to be working. I would like to use memory/HttpImageHandler, instead of the ImageLocation configuration. My Web.Config

MS Chart for .NET predefined palettes color list?

断了今生、忘了曾经 提交于 2019-12-02 19:33:59
Microsoft Chart for .NET (3.5, 4.x) has predefined palettes e.g. Berry, Bright, SeaGreen etc. Is there anywhere a list of colors for each palette (hex or named)? Thanks! Found this image on Alex Gorev's blog Guess I can use color picker to get actual color names/codes EDIT: Here are the list of colors I extracted: Berry: 8A2BE2,BA55D3,4169E1,C71585,0000FF,8019E0,DA70D6,7B68EE,C000C0,0000CD,800080 Bright: 008000,0000FF,800080,800080,FF00FF,008080,FFFF00,808080,00FFFF,000080,800000,FF3939,7F7F00,C0C0C0,FF6347,FFE4B5 BrightPastel: 418CF0,FCB441,DF3A02,056492,BFBFBF,1A3B69,FFE382,129CDD,CA6B4B