Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - X Axis Bunched UP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

X Axis Bunched UP

 Post Reply Post Reply
Author
Message
silveja1 View Drop Down
Newbie
Newbie


Joined: 27 June 2011
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote silveja1 Quote  Post ReplyReply Direct Link To This Post Topic: X Axis Bunched UP
    Posted: 21 July 2011 at 9:26am
Hi,
The X-Axis is all bunched up when creating a chart that
is over a span of one day.  Is there any way to limit the labels
that are drawn or space them more appropriately?



Thanks,
Jay
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: 22 July 2011 at 2:18am
Can you show code you used for it ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
silveja1 View Drop Down
Newbie
Newbie


Joined: 27 June 2011
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote silveja1 Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2011 at 3:59pm
uploads/6869/chart.rar

I posted the code, but the file that uses the chart has about 700 lines
and a few different charting options that I couldn't easily rip out.  

There were a few different charting options supported, Pie, Line, over a specific
time span, aggregating by date or hour. 

In this case the time span was over 24 hours and filtering by hour.
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: 04 August 2011 at 2:04pm
Hi,

I see you manually set Custom Axis, so Chart should show them all.

Think you can change angle or make them shorter to make it look nicer.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
silveja1 View Drop Down
Newbie
Newbie


Joined: 27 June 2011
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote silveja1 Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2011 at 2:06pm
How do I set the angle?
Is there a way to set only every other label? 
Does this have to be done by hand?

Back to Top
seanma View Drop Down
Newbie
Newbie


Joined: 13 February 2012
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote seanma Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2012 at 10:46am
pAxisX->GetLabel()->SetAngle()
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.188 seconds.