Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Go Back  Xtreme Visual Basic Talk > > > Chart, x-Axis is wrapping..


Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2012, 09:59 PM
lostcontrol lostcontrol is offline
Newcomer
 
Join Date: Jan 2010
Posts: 11
Default Chart, x-Axis is wrapping..


Hi,

I am trying to plot a data stream of x, y1 & y2.
x is the x-axis, and ranges up & down, as in it is not 0-100, rather 0-100-0-100-0-100 etc.
y1 & y2 are plotted accordingly.

What is happening when I plot the series, the values after the 0-100-0 part plot backwards.
I have plotted the same thing in Excel & it does not perform this way..

I am sure it is something simple
Reply With Quote
  #2  
Old 07-11-2012, 11:35 PM
Flyguy's Avatar
FlyguyChart, x-Axis is wrapping.. Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,160
Default

Can you give a sample of the data stream, a picture of how the chart looks in Excel and how the chart looks with control you use. Also state which control you use.
Reply With Quote
  #3  
Old 07-12-2012, 02:06 AM
lostcontrol lostcontrol is offline
Newcomer
 
Join Date: Jan 2010
Posts: 11
Default

The Excel Chart, a text file of the Data Stream for the graphed data & ScreenShot of VB.Net plot.

I am using the simple Chart control, adding the data with
Quote:
chart1.Series(0).Points.AddXY(xvalue, y1)
chart1.Series(1).Points.AddXY(xvalue, y2)
Im picking there must be another way to add the X-Axis data..?
Attached Images
File Type: png VB.Net Plot.PNG (46.1 KB, 6 views)
File Type: png Excel chart.png (65.0 KB, 5 views)
Attached Files
File Type: txt DataStream.txt (5.7 KB, 2 views)

Last edited by Flyguy; 07-12-2012 at 03:00 AM.
Reply With Quote
  #4  
Old 07-12-2012, 03:13 AM
Flyguy's Avatar
FlyguyChart, x-Axis is wrapping.. Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,160
Default

It seems to me that the values for the x-axis should be labels and not the position on the x-axis of the chart. So add each y1,y2 value to the 'next' x-axis value and set the x-axis label to your "x-axis value"

Last edited by Flyguy; 07-12-2012 at 08:00 AM.
Reply With Quote
  #5  
Old 07-12-2012, 05:26 AM
lostcontrol lostcontrol is offline
Newcomer
 
Join Date: Jan 2010
Posts: 11
Default

That makes sense.
Now trying to work out how to add the xvalue to the label...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping.. Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
 
Chart, x-Axis is wrapping..
Chart, x-Axis is wrapping..
 
-->