This is a migrated thread and some comments may be shown as answers.

radchart with candlestick and line

1 Answer 103 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ricardo
Top achievements
Rank 1
Ricardo asked on 30 Jul 2010, 02:48 PM
Hi,

I am having some trouble trying to show a candlesiick graphic together with lines.
I am defining a SeriesMappingCollection and a DataSeriesCollection, where the first is holding the bindings (X and Y axis) for the line series and the second has the values for the candle stick. The problem is, when put together, the line series "loses" the binding for X axis (becoming a vertical line with X=1). Separately, they work fine.

Do you know what possibly is going wrong?

Thank you

1 Answer, 1 is accepted

Sort by
0
Ricardo
Top achievements
Rank 1
answered on 30 Jul 2010, 05:14 PM

Hi again,

Finally I solved the problem. The problem itself was really happening, but the cause was very hidden in my code. After some hour I discover what was wrong.

I will try to explain, so if someone else have a problem like this one, it may be helpful.

Like I said, I am drawing a line and a candlestick graphics. The problem was in the definition of the X axis. I didn't notice before, but in the line series I have used a number for X-axis, and in the candlestick I was using, without perceive, a categorical X axis. So, I think RadChart was re-doing the X-axis to hold that. The solution? Change the X-axis definition in candlestick to a number (through XValue method).

It's a simple problem, but it cost me some time to discover what was wrong.
I hope this may be usefull to someone else.

Thanks

Tags
Chart
Asked by
Ricardo
Top achievements
Rank 1
Answers by
Ricardo
Top achievements
Rank 1
Share this question
or