How to change chart range with date/time scale |
Post Reply |
Author | |
ES
Newbie Joined: 02 October 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
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
|
|
ES
Newbie Joined: 02 October 2010 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Never mind....
After changing to OleDateTime objects the conversion to double works out better and I can change the axis range as desired.
/ES
|
|
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 |