mschart

Microsoft Chart stacked columns grouped with non-stacked

大城市里の小女人 提交于 2020-01-03 17:13:38
问题 I was hoping to display data for 4 groups. Each group has 1 stacked column, and 1 non-stacked. Here's a mockup of what I'm after: Getting four groups is easy, this gives me what I want: Series series = chart.Series.Add("Budget"); series.ChartType = SeriesChartType.Column; series.Name = "Budget"; series.Points.Add(55); series.Points.Add(10); series.Points.Add(50); series.Points.Add(50); series = chart.Series.Add("Actual"); series.ChartType = SeriesChartType.Column; series.Name = "Actual";

Microsoft Chart stacked columns grouped with non-stacked

情到浓时终转凉″ 提交于 2020-01-03 17:13:13
问题 I was hoping to display data for 4 groups. Each group has 1 stacked column, and 1 non-stacked. Here's a mockup of what I'm after: Getting four groups is easy, this gives me what I want: Series series = chart.Series.Add("Budget"); series.ChartType = SeriesChartType.Column; series.Name = "Budget"; series.Points.Add(55); series.Points.Add(10); series.Points.Add(50); series.Points.Add(50); series = chart.Series.Add("Actual"); series.ChartType = SeriesChartType.Column; series.Name = "Actual";

c# chart control remove spaces between bars in bar chart

放肆的年华 提交于 2020-01-03 13:30:16
问题 I have a bar chart made with the c# .net chart control that looks like the following: As you can see there is a space between each pair of red and blue bars on the chart. Is there a way to remove those spaces? Thanks in advance! EDIT: Here are the lines from the designer chartArea1.Name = "ChartArea1"; this.CHRT_DPS_HPS.ChartAreas.Add(chartArea1); legend1.Name = "Legend1"; this.CHRT_DPS_HPS.Legends.Add(legend1); this.CHRT_DPS_HPS.Location = new System.Drawing.Point(3, 271); this.CHRT_DPS_HPS

MS Charts C# Line Chart not accurate on data with gaps

你说的曾经没有我的故事 提交于 2020-01-03 06:15:39
问题 I have some code shown below that loops through a datagridview and graphs the data. The problem I'm having is sometimes the data doesn't line up correctly when there are gaps. I have multiple devices spitting data into my datagridview and sometimes the unit will not report for 2 reports, so there were be a gap in data but I still want my data to line up properly. How do I achieve this? The chart picture below will describe the issue better. I'm using MSCharts, Winforms, C#, and .NET 4. //for

Separating Chart Series

主宰稳场 提交于 2019-12-31 07:06:26
问题 I currently have a chart element that has 4 Series. My problem is that while they work individually, if I set more than 1 Series it sets the data for all of them to the last DataSet (So Series 1,2 & 3 have the same positions as 4). Could someone have a look at my broken code and let me know where it's all going wrong? And maybe some pointers on neatening it up... I have never worked with any form of charts before. Using con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C

Microsoft Chart Controls Legend Item Ordering

↘锁芯ラ 提交于 2019-12-29 09:13:45
问题 I've got a chart with 8 series - call them S1 through S8. They're in order in the chart's list of series, and they're presented using custom legend items (Legend.CustomItems). Everything works fine, except there seems to be a bug with how items are displayed in the legend when the legend wraps around to a new line. I'd like the items to be displayed in rows: S1 S2 S3 S4 S5 S6 S7 S8 Unfortunately, it seems like when the legend detects that it's going to take two rows, it fills in vertically

Microsoft Chart Controls Legend Item Ordering

戏子无情 提交于 2019-12-29 09:13:05
问题 I've got a chart with 8 series - call them S1 through S8. They're in order in the chart's list of series, and they're presented using custom legend items (Legend.CustomItems). Everything works fine, except there seems to be a bug with how items are displayed in the legend when the legend wraps around to a new line. I'd like the items to be displayed in rows: S1 S2 S3 S4 S5 S6 S7 S8 Unfortunately, it seems like when the legend detects that it's going to take two rows, it fills in vertically

Bar and Line charts are not synced when in the same chart area

≡放荡痞女 提交于 2019-12-25 04:28:18
问题 I have problem with a chart in vb.net. The problem is that line and bar are not synced in the chart area. I've attached a picture to make it clear what I mean Here is the code where I populate the chart. I´m getting the data from a database. Dim theDate As Date For i As Integer = Count - 1 To 0 Step -1 'Chart1.Series("serRxTime").Points.AddY(dv(i)(0) / 60) theDate = dv(i)(1) Chart1.Series("serTime").Points.AddXY(theDate.ToString("dd-MMM HH:MM", enUS), dv(i)(0) / 60) Chart1.Series("serAdd")

x-axis label is not shown at right place in ms chart using windows application

匆匆过客 提交于 2019-12-25 02:18:45
问题 problem: X-axis label is not show at the right place. i want below the x-axis and a dotted line to touch the x-axis label from every column bar. Please give ur comments. 回答1: I presume you want the X Axis labels to be placed below the chart area and not dangling in the center whereby you have the crossing set. In that case you can set it via Chart1.ChartAreas[0].AxisX.IsMarksNextToAxis = false; This should show the labels in the bottom position and not at the crossing. 来源: https:/

set the footer in place

泄露秘密 提交于 2019-12-25 02:14:47
问题 setting the footer.. in the above screen the footer is displayed after new member report and reporting period but i dont want like this I'm working on windows application using C#. I have generated the "Report" using Ms chart control. While printing and exporting into XPS format, Header and Footer are appearing its fine . But i want the Footer will be displayed at the bottom of the report at present it was appearing just after the header, I want to add this Footer at the bottom using C#. So