avs112 Posted January 24, 2008 Report Share Posted January 24, 2008 Hello, I am currently using your trial version to see if your product does what i am looking for. What I have to do is to graph 700 points at 5 minute interval, followed by 700 points at 30min interval, followed by 700 points at 2 hours interval, followed by 700 points at 24hrs interval. I wanna keep the interval between the points equal throughout the graph. So far, I graph the 2 first levels, and this is the problem I am getting: It's drawing the first level well(5min), the second level is only drawing points(30min). My problem is that if i just changed the timespan from 5 min to 30min, I end up with the same interval on the x axis for 5 min, 30 min. What I tried, for the 30 min is to plot 1 point and then jump by 5 and put the next point. Now, my problem with this is that it's not drawing the line between points for the 30 min interval. I don't wanna draw all the points, you can imagine the number of points that would represent.... What should I do about this? Another problem is that if I let the step properties to 0, it doesn't show me the x-axis value for my 30min interval. I am also going to redo the zooming interface to make it look like google map, so probably I could change the stepping then. If there's a better way to do that please let me know. Quote Link to comment Share on other sites More sharing options...
avs112 Posted January 24, 2008 Author Report Share Posted January 24, 2008 Okay I fixed the stepping issue, but the line is still not drawing, Forgot to thank you guys.... Thanks! Quote Link to comment Share on other sites More sharing options...
Frank Posted January 24, 2008 Report Share Posted January 24, 2008 Please post the code that produces the chart you are refering to as well as a screenshot indicating what you would like to see different. Quote Link to comment Share on other sites More sharing options...
avs112 Posted January 25, 2008 Author Report Share Posted January 25, 2008 Thank you for the quick response, this is what the code looks like: for (int i = 0; i < data1.Length; i++) { chart1.Data[0, j] = data1; chart1.Data[1, j] = data2; chart1.Data[2, j] = data3; chart1.Data[3, j] = data4; chart1.Data[4, j] = data5; chart1.Data[5, j] = data6; chart1.Data[6, j] = data7; chart1.Data[7, j] = data8; chart1.Data[8, j] = data9; chart1.AxisX.Labels[j] = Convert.ToString(start); start = start + TimeSpan.FromMinutes(5); j++; } for (int i = 0; i < data1.Length; i++) { chart1.Data[0, j] = data1; chart1.Data[1, j] = data2; chart1.Data[2, j] = data3; chart1.Data[3, j] = data4; chart1.Data[4, j] = data5; chart1.Data[5, j] = data6; chart1.Data[6, j] = data7; chart1.Data[7, j] = data8; chart1.Data[8, j] = data9; chart1.AxisX.Labels[j] = Convert.ToString(start2); start2 = start2 + TimeSpan.FromMinutes(30); j = j + 5; } The fist loop graph well and i know the reason it doesnt do the line between dots on the second loop is that i jump by 5 on the x-axis, but i dont wanna have to put the points in between. remeber i have other level that will be every 2 hours and every 24 hours.... http://community.softwarefx.com/forums/p/8666/C:/Documents%20and%20Settings/jpepin/My%20Documents/My%20Pictures/screenshot_ChartFX.bmp Quote Link to comment Share on other sites More sharing options...
avs112 Posted January 25, 2008 Author Report Share Posted January 25, 2008 the picture is not showing up, if you want it email me your email address... Luike I said there will be 2 more loop with the timespan at 2 hours and 24 hours and each level has about 700 points. If there is settings to make the graph faster and neater that you could recommend please do. If you want the whole source code send me your email address and I will send it to you. Since I am waiting for your response I am currently trying alternative solutions. Once we solve this issue I will spend more time making the graph neiter and everything Thanks for your help, hopefully we can use your product Quote Link to comment Share on other sites More sharing options...
Frank Posted January 25, 2008 Report Share Posted January 25, 2008 This code doesn't compile/run and I do not understand what you are trying to do. To post a picture, go to the options tab (top of your page when you reply to this message) and add the picture as an attachement. Quote Link to comment Share on other sites More sharing options...
avs112 Posted January 25, 2008 Author Report Share Posted January 25, 2008 here is the picture... the code only shows you how i am taking data from some arrays and putting it in your graph. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.