Display X-Y Values In MSChart?
Apr 29, 2008I have several questions regarding the MSChart
View 5 RepliesI have several questions regarding the MSChart
View 5 RepliesI have used MSChart control and created line graph. when i move my mouse over the graph, i want to display X-axis value and Y-axis value in another label above the graph.
View 2 RepliesI have a database with testmarks of - lets say 30 students. I would like to print a distribution chart using Mschart. The values will be loaded into an array ChartData(30) The distribution chart X-axsis should range from 0 - 100 and the Y-axsis 0 to the average amount.... hopes it makes sence....
[Code]...
I've spent hours searching the internet on this, and found a bunch of posts with similar problems, but none of the solutions I saw have worked for me, so bear with me. I have an application that's a couple years old that has a form with a chart on it(using mschart). Worked on my old development machine, and most users. Eventually some users started letting me know that the chart wasn't working for them. The chart was a minor feature, and I was unable to reproduce the problem, so it kept getting pushed back.
[Code]...
I am working in windows xp sp3, I am using MS visual studio 2008 with vb.net, In my system i dont have AxMSchart20Lib,Mschart20Lib and Mschart.ocx. From where to download in microsoft site. give the microsoft download url.
View 7 RepliesI want to change the color of the row in my mschart i used this code but it says, index out of bounds. im working this for a couple of days but find no solution. im very much great full if i will be helped.
[codes]
AxMSChart1.RowCount = 5
AxMSChart1.Plot.SeriesCollection(1).DataPoints(1).Brush.FillColor.Set(250, 250, 250)
'error says index given is out bounds
[/code]
How do I do the following with an MSChart?Set axes to x: [0 - 1000] and y: [0 - 1].Show the gridlines when chart has no points.Disable auto adjusting of gridlines.
Note: Setting Axis(X/Y).(Min/Max)imum seems to have no effect if a point exists inside the bounds.
in runtime I can see that X-axis limits of my chart (minimum and maximum) are automatically changed as I insert points. That's nice. So I came to an idea to change that minimum and maximum values. It worked. But as soon as I wanted to return (at runtime) to auto I came across some problems. First I discovered that when auto scaling is activated this values are:
[Code]...
VB2005 - I have a form that has three DGVs. Two of these DGVs have data that I want to plot on a chart (currently testing with MSChart). Im struggling to figure out how to just plot the data from one DGV. The DGV has a column Time and Level which I want o plot as X and Y respectively. Can this be done directly with data from a DGV?
View 3 RepliesHow do I print a MSChart in vb2008?
View 2 RepliesI've googled a bit and saw someone said they had success in simply dragging the .dll files over to their application's path. I have tried this as well, and unfortunately it doesn't work. It stops the errors, but my chart is entirely blank. Some of the features of the chart work. ie: the legend shows up. But I have hidden some items from the legend and they still appear in the legend while running on a 2.0 system. For example, on my development machine, it shows 4 items in the legend, but on the 2.0 machine, there are all 7 - including the 3 that I have hidden.
[Code]...
In a windows form there are 2 panels.
in one panel is the DGV listing data from DB.
i need to display some more related data of those data in few text boxes in the second panel, when the user places the cursor in any particular cell.
like in the DGV, Code and Name will get displayed.
in the second panel there will be some text boxes like City, Group, Region, Etc,..
The DGV is populated by the data from table1 (for ex,.)
The other values like city, group, region, are stored in table2.[cod]e...
Here is some sample code:
Dim arrValue(3) as Integer
arrValue(0) = 5
arrValue(1) = 4
[code].....
I use Mschart to produce charts. What I am trying to get is the nearest data point by where I click on the chart. The problem is that I can't find any connection between the HitTest values and the data point x/y values.Say, I clicked on the following point:
Dim result As HitTestResult = Chart.HitTest(e.X, e.Y)I have now values of X and Y where I clicked. How to associate it with the data point values?
What I want to achieve is to double-click on the chart which would find the nearest data point (x,y as integer) and knowing these values I would be able to recalculate other values based upon where the user needs it and double-clicks.
[Code]...
I want to associate date and time to x axis of mschart, but only date is shown on x axis and time is invisible.What's problem?
program :Public Sub drawChart(ByVal data() As Double, ByVal AxiX() As Date, ByVal i As Integer)
Dim numOfData As Integer = data.Count
[code].....
I have a windows forms project in VS2010 with a simple line chart.The data is dynamic and always ranging between 1.4000 and 1.5000.I want the Y axis's gridlines/labels to always be displayed on every #.##20 data point, as in: [code] So I tried the Interval property for the axis gridlines/ labels, setting it to 0.002, and the result was that the gridlines/labels were displayed every 0.0020 points, like for example this: [code]
but not on 0.0020 points too as shown previously.
I am using axMSChart objects to display charts in my VB .Net Windows Forms App.I am also trying to export them to a PowerPoint presentation which I automatically generate using Office Interop.However, when I use EditCopy to copy the Chart to the clipbord and paste it into PowerPoint, the color of the Edge of my Bar Chart is set to red for the firstSeriesCollection and green for the second one.
View 1 RepliesI have a problem regarding solutions that I have to develop. I work in a company which has a standard of NET Framework 3.5.Also the company has bought Visual Studio 2010 Premium for me.I need to develop an application in which I have to insert som Charts. Previosly in Visual Studio 2008 Express was very simple because I have installed MSChart Addon from Microsoft.The problem with VS2010 Premium is that I cannot create aplication with charts in NET Framework 3.5, only in .NET 4 but I cannot develop solutions in NET Framework 4.0 because, like I have said, the company standard installation is NET Framework
View 8 RepliesHow do you plot dynamic data (from a dataset) on MSChart?
View 3 RepliesPopulate MSChart From DataGrid / Access DB
View 6 RepliesI'm trying to make a very simple chart.[code]...
So the whole pie would represent the 1000 task and the 2 slices would represent the finished and unfinished task. How can i programmatically create this?
I would like to use MSChart to display a line chart (X-Y plot with 2 array) on visual basic 2008. I am wondering if someone here can share working examples of using MSChart on VB 2008. In my program, I would like to read in 2 pressure array, each as function of time. Then, plot the pressures using MSChart.
View 4 RepliesI'm using VS2005 and VB.NET 2005 for my work. I need to create charts and to convert them into images. I'm desperately trying to save MSChart in BMP (or JPEG, I don't care).
I tried to copy the MSChart in the clipboard but I have an error :
VB
MSChart1.EditCopy() 'Copy in the clipboard
If Clipboard.ContainsImage() Then
[Code].....
I know it's a known problem (there are tons of questions about that on the web) but I can't use a newer version of VB... =/
I have browse the net and can not find any examples of code that i can use to see how the Mschart control works. Can someone please help me with some examples.
View 4 RepliesI need to be able to plot (for example) the following values on a chart:
4.5
3.1
5.3
2.1
<1.0
2.5
The value <1.0 is there as we cannot give the exact value if it is less than 1 but we need to display it.
Is there a way of just displaying the datapoint label with '<1.0' as text, or something similar?
I am using combobox on a form to select a graph to display on MSChart. The points are then drawn on the chart which is fine for the first chart selected.If I then select a second chart to display it adds the data to the current graph.I have tried Me.Chart1.Series(0).Points.Clear()which clears the points but the axis information remains ie The first chart has 10 sets of points so the y axis goes to 10. When selecting the next chart which has 15 points the y axis goes to 25 even with the points removed.I have also tried manually setting the x and y max values after the new points are added but it doesnt alter the values.Any idea how to set the chart back to default so that I can plot the next.
View 2 RepliesI have a datagrid on my form which displays a data table from a DataSet (extracted from an Access DB) when the user selects an option from a combo box on the form. I would like this same data to be displayed in an MSChart on the same page but I dont know how to link the chart to the DataSet
View 3 RepliesI have created a chart with MS chart control on a form. On the form there is a menubar. Now i want to only print the chart and not the menubar and form layout. When i use one of the next two lines the whole form is printed.
Me.PrintForm1.Print()
'Or
PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
I also want the printed chart to be a fixed size. The size of the chart depends on the size of the form. The size of the form depends on the resolution of my screen. So the printed chart isn't always the correct size.
this is my absolute first attempt at the mschart control in a winform, so any help would be appreciated - i have sales reps that issue quotes to customers and would like to plot number of quotes by month using the mschart control.I have a dataset populated with a single table with 2 columns in it - sales_rep and quote_issued_date (there's more, but i'd like to only focus on those two because they contain all the info i need)i have a windows form with an MSChart control dropped on to it. I'm trying to get this to work on a 'column' chart type.i'd like to count the number of records in the dataset per sales rep per monthi'd like to get the x axis to be months in the year (fixed, not drawn from the data) - jan thru dec.
i'd like to get the Y axis to reflect the highest count of rows per rep per month + say....10% (so the graph doesn't peak out at the top every time, it would be more for aethestics)i'd like to get the columns displayed in the graph to be each rep, each month (ie for january john has 10 quotes issued, bill has 5, tom has 31 - for feb john has 3, bill has 10, tom has 19 - etc etc etc) - because the form is just a quick visual, i'm dumping any code in the form load event and calling it good.
let me explain further i have table account. in the table are 2 columns namely account_type,Account_name.So on the forms, i want the combo to show the 2 columns even though ony one column would be saved. Am able to do this in access as attached.[code]...
View 5 Replies