Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - BUG: Area not drawn correctly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG: Area not drawn correctly

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: BUG: Area not drawn correctly
    Posted: 26 June 2011 at 2:12pm
XTP 15.0.2
 
UPDATE! Added sample project:
 
 
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/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2011 at 2:13am
See attached sample project!
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 21 July 2011 at 8:05am

Fixed in 15.1.1 or not?!

PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2011 at 4:17am
Was this fixed or not?!
PokerMemento - http://www.pokermemento.com/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.