Jump to content
Software FX Community

Entering value at different interval with x-axis as datetime


avs112
 Share

Recommended Posts

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. 

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...