I'm trying to implement TeeChart scrolling along the lines of whats explained in http://www.teechart.net/support/viewtop ... 2747#32747 but things aren't working. Here's what I've done so far:
I added a TeeChart webcontrol to a new page and set the tempchart property to httphandler. In the codebehind I added the following in the PageLoad event.
Code: Select all
Dim series As New Steema.TeeChart.Styles.Line
series.Pointer.Style = PointerStyles.Circle
series.Pointer.Visible = True
series.XValues.DateTime = True
For i As Integer = 1 To 1000
series.Add(today.AddDays(-i), i * 10)
Next
WebChart1.Chart.Series.Add(series)
WebChart1.Chart.Axes.Bottom.SetMinMax(today.AddDays(-7), today)
Dim tool As New Steema.TeeChart.Tools.AxisScroll
WebChart1.Chart.Tools.Add(tool)
tool.Axis = WebChart1.Chart.Axes.Bottom
Also how do I retrieve the the maximum value of the bottom axis and series (in case I should add more than one series) in datetime format?
Code: Select all
WebChart1.Chart.Axes.Bottom.MaxXValue
Code: Select all
Dim dt As Date = Date.FromOADate(WebChart1.Chart.Axes.Bottom.MaxXValue)
Thanks,
Norman