mschart

How to displace the origin of the Y axis on a polar Mschart?

断了今生、忘了曾经 提交于 2020-01-13 05:56:22
问题 Im working on a polar chart with mschart, and I need to make this "hole" on the middle of the chart. I mean, i need the "0" of the Y axis not to be on the center. I saw this plot somewhere on stackoverflow. It´s exactly what i need, how can I do that? 回答1: In order to create a radar plot that look like the provided example // disable grid a long X chart1.ChartAreas[0].AxisX.MajorGrid.Enabled = false; chart1.ChartAreas[0].AxisX.MajorTickMark.Enabled = false; // set Y axis chart1.ChartAreas[0]

How do I create a bar chart showing percentages bound to a list of objects?

两盒软妹~` 提交于 2020-01-12 05:29:07
问题 Using the DataVisualization.Charting.Chart control, I need to create a bar chart (maybe stacked bar chart) that shows per person the number of hours booked for that person and a those hours' percentage of total hours. So far I am a bit overwhelmed by the number of collections and properties to set on this beast, so I'd appreciate some help on first getting my chart up, then I'll explore more on my own. I need to bind the chart to a list of the following object: Public Class DOHoursChartItem

How to control winform mschart legend text alignment c#?

拥有回忆 提交于 2020-01-11 10:55:52
问题 How does one set the alignment of text within a chart legend object? I've tried using: myChartName.Legends["mySeriesName"].Alignment = stringAlignment.Near With no effect. I've also tried to create custom legend items, again resulting in no effect. Text is ALWAYS centered (along with the series marker) in the legend "box". The only text I have been able to align is the title, but I don't need titles in my application. My research to date says the legend object is basically a table with (by

How can I plot more than 50,000 values in a scatter chart, saving computer resource?

家住魔仙堡 提交于 2020-01-11 04:04:05
问题 I'm using Visual Studio 2017 and am trying to make a program that shows real-time values in a scatter chart, using C# and winform. With the source code below, I was able to make it show real-time values, whenever an event occurs and it gets a new value(3~5 times a second). valueArray continuously gets new values through GetRealTimeData function and the chart shows all the elements in the array. valueArray[valueArray.Length - 1] = Convert.ToDouble(GetRealTimeData().Trim()); Array.Copy

trying to show the two graphs on same page

旧时模样 提交于 2020-01-06 15:29:14
问题 I am using win forms application I am using single ms chart control and generating two different charts and want to show two on same page by using bool overview (this means when the applications runs one graph will be shown and if you click on that graph i want to show another one along with this one ) by the following code private void chartControlMemberTotals_Click(object sender, EventArgs e) { kpiMemberTotalsForm.DrawKpi(this.chartControlMemberTotals, startDate, endDate, true); } public

How to display logarithmic x-axis minor label?

跟風遠走 提交于 2020-01-05 12:13:00
问题 I set x-axis as logarithmic scale, but it only displays the major labels, exp : 1E000, 1E001, 1E002, etc... Now i also want to display the minor values, for example : 2E000, 3E000, 4E000,..., 2E001, 3E001, .... . it should look like the graph below : It seems a simple question but i can't find the way to solve this problem. Can anyone help me ? Thanks in advance. 回答1: This question is similar to this one. It took me a long time to solve this one, but: If you if you set the MinorGrid Interval

MS Charting Annotations refuse to align to mouse position

走远了吗. 提交于 2020-01-04 14:09:15
问题 Can anyone tell me why the below is happening please? The red line signifies where the annotation should be positioned (along X axis), but it's always rendered right on the left edge... I did a few searches in Google and SO, and found an answer which implies that PixelPositionToValue(Mouse.X) would sort it, but even using this it ends up exactly the same. Private Sub AssignNewDownTime() Dim sStr As String = InputBox("Please enter downtime reason") Dim annot As New Charting.RectangleAnnotation

Show tooltip in LineSeries WinForms Chart?

天大地大妈咪最大 提交于 2020-01-04 04:33:41
问题 I am working on a Dashboard System where i am using Line Chart in WinForms. I need to show the tooptip on each line. I have tried this var series = new Series { Name = chartPoint.SetName, Color = chartPoint.ChartColor, ChartType = SeriesChartType.Line, BorderDashStyle = chartPoint.ChartDashStyle, BorderWidth = chartPoint.BorderWidth, IsVisibleInLegend = !chartPoint.HideLegend, ToolTip = "Hello World" }; but its not working for me 回答1: You have two options either use Keywords accepted by the

Colour selection of Silverlight Toolkit Chart Line Series

喜夏-厌秋 提交于 2020-01-04 02:22:12
问题 I'm working with the Silverlight 4 toolkit and using the Charting control, specifically the Line Series. I'm also using one of the Microsoft Silverlight themes, which comes with some default styling for the Chart. I know that in the ToolkitStyles.xaml there's a whole host of colour brushes that get used by the charting toolkit - ChartBrush1, ChartBrush2 etc. etc.. What I don't understand is how they get used by the chart itself. The reason I'm asking this is because I'm trying to change the

Can't Adjust Chart Margin

a 夏天 提交于 2020-01-03 21:03:07
问题 I created a Chart but it has a left margin between the Y.Axis and the Chart's border. How can I make it 0? And is it possible to define a 5px uniform margin (left, top, right, bottom) between the chart and the border? My Chart code is the following: Chart chart = new Chart { AntiAliasing = AntiAliasingStyles.All, TextAntiAliasingQuality = TextAntiAliasingQuality.High, BackColor = Color.FromArgb(250, 250, 250), Height = size.Height, Width = size.Width }; chart.Legends.Clear(); ChartArea area =