Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Chart Control
  New Posts New Posts RSS Feed - How to change chart range with date/time scale
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to change chart range with date/time scale

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


Joined: 02 October 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ES Quote  Post ReplyReply Direct Link To This Post Topic: How to change chart range with date/time scale
    Posted: 21 April 2011 at 5:03am
Hi,
How do I modify the axis range when using a date/time scale type, after setting the chart scale type with SetArgumentScale(xtpChartScaleDateTime) ??
 
SetMaxValue/SetMinValue only takes a double as argument, even when I pass a CTime::GetTime() value cast to a double value the scale only reads 'Invalid date/time'.
 
I try to do this on a StepLine chart type in order to add some spacing on each side of the end data points.
 
/ES
Back to Top
ES View Drop Down
Newbie
Newbie


Joined: 02 October 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ES Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2011 at 5:18am
Never mind....
After changing to OleDateTime objects the conversion to double works out better and I can change the axis range as desired.
 
/ES
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.187 seconds.