Print Page | Close Window

BUG: Area not drawn correctly

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18594
Printed Date: 09 May 2024 at 9:51am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: Area not drawn correctly
Posted By: znakeeye
Subject: BUG: Area not drawn correctly
Date Posted: 26 June 2011 at 2:12pm
XTP 15.0.2
 
UPDATE! Added sample project:
uploads/2198/ChartBrowser2.rar - uploads/2198/ChartBrowser2.rar
 
 
I really hope you get these area charts right for the next release. Here we go...
 
Area gets drawn incorrectly:
 
 
With the same data (and same data-filler algorithm), line chart is ok:
 
 


-------------
PokerMemento - http://www.pokermemento.com/



Replies:
Posted By: Oleg
Date Posted: 28 June 2011 at 6:05am
Hi,

we need test it with same data to find out why it doesn't work for you.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 07 July 2011 at 2:13am
See attached sample project!

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Oleg
Date Posted: 07 July 2011 at 7:33am
Hello,

Thanks I see. Indeed Stacked Style don't presort points before Draw. but simple Area do.

In sample's AreaView replace 
CXTPChartStackedAreaSeriesStyle *pAreaStyle = new CXTPChartStackedAreaSeriesStyle;
to
CXTPChartAreaSeriesStyle*pAreaStyle = new CXTPChartAreaSeriesStyle;

to fix it.


Working with fix for Stacked Area too.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 07 July 2011 at 4:14pm

Great! And thanks :)

One more thing. See the _ADD_EXTRA_POINT-guarded code blocks. Do you see what I'm trying to do there? Since (in this case) my values never decrease, I add values at the right-most value to simulate a "keep on drawing on this level" function. Is this the right approach according to you?

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 21 July 2011 at 8:05am

Fixed in 15.1.1 or not?!



-------------
PokerMemento - http://www.pokermemento.com/


Posted By: znakeeye
Date Posted: 01 August 2011 at 4:17am
Was this fixed or not?!

-------------
PokerMemento - http://www.pokermemento.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net