Hello all,
I have chart with several series.
some part of series is hidden by other series above them,
so I would like to change the drawing order of series at run-time.
How can i do it without changing series index?
best regards,
iblee
change series draw order
Re: change series draw order
Hello iblee,
I suggest you use property ExchangeSeries of TChart as do in next code:
Can you tell us if previous code works as you want?
I hope will helps.
Thanks,
I suggest you use property ExchangeSeries of TChart as do in next code:
Code: Select all
Private Sub Form_Load()
TChart1.AddSeries scLine
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
TChart1.Series(1).FillSampleValues
TChart1.ExchangeSeries 0, 1
End Sub
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: change series draw order
Thank you for your reply.
Your answer changed the order of drawing but,
changed the series index too.
In my application series index is associated with other variables so that it must maintain it's index.
Is there any solution that can change the order of drawing while maintaining series index?
regards,
iblee
Your answer changed the order of drawing but,
changed the series index too.
In my application series index is associated with other variables so that it must maintain it's index.
Is there any solution that can change the order of drawing while maintaining series index?
regards,
iblee
Re: change series draw order
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: change series draw order
Hi Yeray
I am really appreciate your help.
In my chart, many series are overlapped and I want one arbitrary series to be drawn on the top.
Can drawing order be controlled in arbitrary way?
Best regards
iblee
I am really appreciate your help.
In my chart, many series are overlapped and I want one arbitrary series to be drawn on the top.
Can drawing order be controlled in arbitrary way?
Best regards
iblee
Re: change series draw order
Hi iblee,
I'm afraid not.
The only possibilities I see are the suggested above. Concretelly, regarding the first suggestion about using ExchangeSeries to sort your series as you wish, you said:
I'm afraid not.
The only possibilities I see are the suggested above. Concretelly, regarding the first suggestion about using ExchangeSeries to sort your series as you wish, you said:
I guess you could add some logic to maintain a table of indexes to maintain your relations.corwl wrote:In my application series index is associated with other variables so that it must maintain it's index.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |