radchart with candlestick and line

2 posts, 0 answers
  1. Ricardo
    Ricardo avatar
    10 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2010 Link to this post

    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
  2. Ricardo
    Ricardo avatar
    10 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2010 Link to this post

    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

Back to Top