![]() |
How to change the major units of axis |
Post Reply ![]() |
Author | |
Jing ![]() Groupie ![]() Joined: 14 February 2011 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() Posted: 14 March 2011 at 3:38pm |
I have a question about changing major units of axis. For example, I want to show the number below axis is 1,2,3,4,5,6,7,8,9 instead of 2,4,6,8 by the chart plot default. Which class and method I should use here. Thank you in advance!
|
|
![]() |
|
Andy121070 ![]() Groupie ![]() Joined: 01 December 2010 Location: UK Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
I have the same issue?
What is the correct way of doing this? |
|
Regards
Andy |
|
![]() |
|
olebed ![]() Admin Group ![]() Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Hello,
pDiagram->GetAxisX()->SetGridSpacingAuto(FALSE); pDiagram->GetAxisX()->SetGridSpacing(1);
See implementation of method CXTPChartDiagram2DAxisView::CreateTickMarks Regards, Oleksandr Lebed |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |