Print Page | Close Window

How to change chart range with date/time scale

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Chart Control
Forum Description: Topics Related to Codejock Chart Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18253
Printed Date: 16 May 2024 at 9:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to change chart range with date/time scale
Posted By: ES
Subject: How to change chart range with date/time scale
Date 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



Replies:
Posted By: ES
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net