mschart

MS chart candlestick How to set tail colors

随声附和 提交于 2019-12-11 03:38:03
问题 I am currently developing a candlestick chart with mschart in visual C#. I have now created two charts and created the charts as follows Question 1. View the Candlestick Chart at the top. I would like to apply the tail color of each rod as red or blue. Question 2. View the bar chart at the bottom. I would like to apply Red or Blue color to this chart. I want to apply the same color to the top of the Candlestick chart. How can I do it ? [source] DataTable table_ChartData = new DataTable();

How to Cache Real-time Data?

女生的网名这么多〃 提交于 2019-12-11 03:23:08
问题 I'm working on a windows forms application (.NET 4.0). My form contains a 'Fast Line' chart using the Microsoft chart control included in VS2010. The chart gets filled with about 20,000 datapoints. My application then starts receiving market data from a server via DDE (Dynamic Data Exchange) in real-time and adds it the chart. Note: I have no control over the server and so I have to deal with DDE only even though it's an outdated technology. VS doesn't support DDE anymore and so I use the

Can I use Microsoft Chart Control in Mono?

烂漫一生 提交于 2019-12-11 01:45:36
问题 Did some googling and couldn't find a clear answer on this. My assumption is no if they are distributed in a binary form. I currently use Dundas and would like to move away from a library that has a cost component, especially since the MS version has everything I need. 回答1: I just ran the installer, available from the download center on microsoft.com. Here are the terms of the license: Microsoft Corporation (or based on where you live, one of its affiliates) licenses this supplement to you.

C# Read string from CSV file and plot line graph

这一生的挚爱 提交于 2019-12-10 18:28:58
问题 Currently, I am able to read data from multiple CSV file and plot line graph using windows form application. However, now I need to plot a line graph based on a CSV file's section name (3rd column of csv file). Modified/New CSV file: (Added the Section Name column) Values,Sector,Name 5.55,1024,red 5.37,1536,red 5.73,2048,blue 5.62,2560,.blue 5.12,3072,.yellow ... Based on the Section Name column, my line graph need to be plotted accordingly in a Single line and different sections must be

Align x axis of one ChartArea with y axis of another?

旧街凉风 提交于 2019-12-10 15:52:49
问题 I'm working with System.Windows.Forms.DataVisualization.Charting (C#, VS 2008). I have two ChartArea s, one containing a SeriesChartType.Line and the other containing a SeriesChartType.RangeBar . Separatly the two charts plot what I want. The horizontal axis in both is time, and I'd like to align them so that I can zoom them together, etc. The horizontal axis of the Line chart is the x axis, but the horizontal axis of the RangeBar chart is the y axis. When I set AlignWithChartArea of one

Multiple columns chart using asp.net chart control

三世轮回 提交于 2019-12-10 15:20:35
问题 I need to show the data columns in multiple column chart, I have used single column charts, but I cant find the way to bind another Y-Axis column to the chart I have data in following format Name DataField-1 DataField-2 Emp-a 200 220 Emp-b 150 250 回答1: I have found the following link useful for the problem. http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx If any one have better suggestion than this please post. Find another solution like following.. double

Microsoft charts: transparency

倖福魔咒の 提交于 2019-12-10 13:48:33
问题 I want a chart with transparent background, and therefore PNG seems a good choice. But when I set transparent background, the quality of the axis labels falls dramatically. How do I fix this? See the following code. As it stands, the chart has a transparent background, as I want, but the text quality is atrocious. If I comment out the two "Color.Transparent" settings, then the text quality is nice, but the background is not transparent. How do I get transparency and nice text? public static

MS Chart Control :Two X Axis, one for hours, another for days (or mixing both)

孤人 提交于 2019-12-10 13:32:50
问题 Is is possible to have an X Axis display hours (HH:MM) and another (or the same) displaying Days (YYYY-MM-DD) at different intervals so it look like | | | | | 09:00 10:00 11:00 12:00 01:00 | 2010/04/20 Or Ideally : | | | | | 09:00 10:00 11:00 2010/04/20 01:00 Off Topic Advice The more I use MS Chart Control the more I regret my decision switching from ZedGraph. I am really getting angry and frustrated I've lost long hours on meaningless details like these and circumventing through very ugly

How do you use the Zooming UI in MSChart for .Net

自古美人都是妖i 提交于 2019-12-10 11:24:11
问题 I have just started looking at potentially using the MSChart control for .Net 3.5 for a project that will be starting shortly. One of the requirements of the project is that the users be able to zoom into the charts to see small data points more clearly when necessary. I have looked at a number of tutorials and the either do not mention zooming, or just give a brief bit of information about how to enable it and seem to assume that using it is so obvious that it requires no explanation. I

ASP.NET Chart control set month names from int value on X Axis labels

落爺英雄遲暮 提交于 2019-12-10 10:12:24
问题 I want to replace numbers (1, 2, 3, ...) on the X Axis of the chart with the corresponding month name. This is my actual chart: On the DataView that populates the Series I have the "MONTH" column that contains values from 1 to 12. I also had to manually set the Minimum and Maximum value to 0 and 13, otherwise I lose the first and last column because of a lack of space between the beginning of the first X Axis column and the Y Axis and between the last X Axis column end of Chart area.