microsoft-chart-controls

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

ASP.net chart control: hide all lines (axes, etc.) except data points

≯℡__Kan透↙ 提交于 2020-01-03 09:22:29
问题 I'm trying to generate sparklines for a dashboard using the Microsoft chart control on ASP.net. Sparklines generally have no axes or anything other than the data points showing. I've succesfully turned off most of the lines but I'm stuck with one horizontal and one vertical line I can't figure out how to get rid of. Here's what I see: Here's what I want: Here's an excerpt of the code I'm using (minus the actual data): Chart2.Width = 100; Chart2.Height = 60; Chart2.BorderlineWidth = 0; var

ASP.net chart control: hide all lines (axes, etc.) except data points

本小妞迷上赌 提交于 2020-01-03 09:21:32
问题 I'm trying to generate sparklines for a dashboard using the Microsoft chart control on ASP.net. Sparklines generally have no axes or anything other than the data points showing. I've succesfully turned off most of the lines but I'm stuck with one horizontal and one vertical line I can't figure out how to get rid of. Here's what I see: Here's what I want: Here's an excerpt of the code I'm using (minus the actual data): Chart2.Width = 100; Chart2.Height = 60; Chart2.BorderlineWidth = 0; var

How do I graph multiple columns on the Y-axis? (MS Chart Controls)

和自甴很熟 提交于 2020-01-01 03:42:10
问题 Trying to follow this example: http://weblogs.asp.net/dwahlin/archive/2008/11/25/getting-started-with-the-asp-net-3-5-chart-control.aspx I have a database with 4 columns, 3 of the columns are int (1-10) and the other is a "DateTime". I am trying to graph the 3 columns vs the DateTime(X-axis) on one line chart. To add more than one y axis value I go to the Series property -> YValueMembers (notice the plural) and enter my 3 columns of the database (followed by commas) that I want on the Y axis.

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

How to trim the values of x on X-axis in Chart control in Winforms?

大兔子大兔子 提交于 2019-12-25 04:27:34
问题 I have a winforms application which contains a chart control called comparisonChart I have implemented Zoom capability in the chart control by subscribing to the mousewheel event and doing the following. private void comparisonChartMouseWheel(object sender, MouseEventArgs e) { if (e.Delta < 0) { this.comparisonChart.ChartAreas[0].AxisX.ScaleView.ZoomReset(0); this.comparisonChart.ChartAreas[0].AxisY.ScaleView.ZoomReset(0); } else if (e.Delta > 0) { double xMin = this.comparisonChart

Winforms chart: how to enable background color gauge

旧巷老猫 提交于 2019-12-18 07:11:54
问题 I'm looking for a way to enable custom background color gauge in the Winform chart control library. Here is an example: See the green, yellow, and red color in the background? Now, I need is a way to customize the background color gauge by controlling the starting/ending Y values, the color itself, as well as the number of different colors. Thanks in advance! 回答1: You can do that by adding StripLines to the y-Axis of the ChartArea . Their positions and sizes are controlled by their StripWidth

How to plot TEMA indicator with Microsoft Chart Control

谁都会走 提交于 2019-12-14 02:58:32
问题 I've added two series: Series1 (CandeleStick), Series2 (Line). I've added points and the FinancialFormula: public Form1() { InitializeComponent(); chart1.Series[0].Points.Add(24.00, 25.00, 25.00, 24.875); chart1.Series[0].Points.Add(23.625, 25.125, 24.00, 24.875); chart1.Series[0].Points.Add(26.25, 28.25, 26.75, 27.00); chart1.Series[0].Points.Add(26.50, 27.875, 26.875, 27.25); chart1.Series[0].Points.Add(26.375, 27.50, 27.375, 26.75); chart1.Series[0].Points.Add(25.75, 26.875, 26.75, 26.00);