I have Time series chart (CategoryXAxis and NumericYAxis) and user have an option to play the historical time data.
When user plays the historical data, he/she wants to see the moving vertical line that indicates the time.(as in the attached screen shot)
I am not sure whether this can be achieved by using Strip Lines, Could anyone have suggestion?
Hello,
Thank you for your post. I have been looking into it, but it seems like that I am missing something in your scenario. Could please be more specific what is your requirement? Do you want a vertical line that the user could move left and right with the mouse?
Looking forward for your reply.
Hello Stefan,
I do have this requirement where I want to draw a vertical line & move it left-right within the ultradatachart control which uses CategoryXaxis & NumericYaxis.
What I have done so far is using the painteventargs I am able to draw a graphic line. Also using this event(painteventargs) I am drawing border which is done within paint event of the control(i.e. ultradatachart) itself.Now my issue is i cannot click/select this graphic line i placed on the chart.
private void ultradatachart1_Paint(object sender, PaintEventArgs e) {
controlPaint.DrawBorder(e.Graphics, this.ultradatachart1.ViewportRect, Color.Black, ButtonBorderStyle.Solid));
e.Graphics.DrawLine(new Pen(color, 2),pt1, pt2);
}
Also i want to achieve this behavior with mouse events click,move,mouseup,mousedown.;where I click on the line/select it and it should move as i move the mouse on the chart & stays at the new location of last mouseclick.
Any suggestions for doing same with infragistics control / any other ??
Ok. I have a chart which has with CategoryXAxis and NumericYAxis. X axis to represent date time and Y axis for numeric value. In our UI user has an option to select the time period and see the data in chart. Let say user is viewing the data for the period from 10/1/2013 12:00AM to 10/2/2013 12:00 AM and the data points are available for each seconds.
We also have time player in the same screen, once the user loaded the data in chart we need to show some line or point (just call as time point) on first second of the selected date period, in above case the point or line should be on 10/1/2013 12:00:00. Once user clicks the play button we have to move the time point to next second and so on until user stop the player.
I tried by having timer running back round for every second, and move the point with adding 1 second and so on. so that user can see the time point is moving to next second on x-axis when timer is running.