Hi there,
I have coded something for creating an cnadlestick-chart with datetime values on x-axis using time.ToOADate().
The problem I have is that the Candlesticks Overlay each other somtimes.
Heres some Code:
Please help.
Greetings Alex ;)
Edit:
Second problem, how can i add a linebreak to an tooltip-text?
I have coded something for creating an cnadlestick-chart with datetime values on x-axis using time.ToOADate().
The problem I have is that the Candlesticks Overlay each other somtimes.
Heres some Code:
RadChart1.PlotArea.XAxis.MinValue = startTime.ToOADate(); |
RadChart1.PlotArea.XAxis.MaxValue = endTime.ToOADate(); |
RadChart1.PlotArea.XAxis.IsZeroBased = false; |
RadChart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.ShortTime; |
RadChart1.PlotArea.XAxis.Step = DateTime.Now.AddMinutes(10).ToOADate() - DateTime.Now.ToOADate(); |
RadChart1.PlotArea.XAxis.LabelStep = 6; |
while (startTime < endTime) |
{ |
RadChart1.Series[0].Items.Add(new Telerik.Charting.ChartSeriesItem { XValue = startTime.ToOADate(), YValue = begin, YValue2 = end, YValue3 = max, YValue4 = min }); |
startTime = startTime.AddMinutes(10); |
} |
Greetings Alex ;)
Edit:
Second problem, how can i add a linebreak to an tooltip-text?