<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : xtpChartScaleDateTime with Zoom</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : xtpChartScaleDateTime with Zoom]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 04:45:03 +0000</pubDate>
  <lastBuildDate>Mon, 04 Apr 2011 09:30:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=18159</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[xtpChartScaleDateTime with Zoom : That appears to give me a fixed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63697&amp;title=xtpchartscaledatetime-with-zoom#63697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4627">Andrew666</a><br /><strong>Subject:</strong> 18159<br /><strong>Posted:</strong> 04 April 2011 at 9:30am<br /><br /><p>That appears to give me a fixed set of X-axis labels, 15 minutes apart.&nbsp; This means that if the period is over a number of days I get hundreds of labels, which are increasingly removed as I zoom in, until eventually I can read them.&nbsp; </p><div></div><div>Unfortunately the Chart control has no Zoom-related events, so I can't dynamically change this <img src="http://forum.codejock.com/smileys/smiley18.gif" height="17" width="17" border="0" alt="Ouch" title="Ouch" /></div>]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 09:30:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63697&amp;title=xtpchartscaledatetime-with-zoom#63697</guid>
  </item> 
  <item>
   <title><![CDATA[xtpChartScaleDateTime with Zoom :   Interesting - I&amp;#039;ll give...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63695&amp;title=xtpchartscaledatetime-with-zoom#63695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4627">Andrew666</a><br /><strong>Subject:</strong> 18159<br /><strong>Posted:</strong> 04 April 2011 at 5:20am<br /><br />Interesting - I'll give that a try - thanks for taking the time to do the complete post.]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 05:20:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63695&amp;title=xtpchartscaledatetime-with-zoom#63695</guid>
  </item> 
  <item>
   <title><![CDATA[xtpChartScaleDateTime with Zoom : I use the zoom too, it works....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63694&amp;title=xtpchartscaledatetime-with-zoom#63694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4564">mimue</a><br /><strong>Subject:</strong> 18159<br /><strong>Posted:</strong> 04 April 2011 at 4:58am<br /><br />I use the zoom too, it works. Perhaps the rest of the code helps:<br><br><font face="Courier New, Courier, mono">Dim DateTimeMin As Date, DateTimeMax As Date, DateTimeAkt As Date<br>Dim Style As New ChartLineSeriesStyle<br>Dim Series As ChartSeries<br><br>&nbsp; If ChartControl.Content.Series.count &gt; 0 Then<br>&nbsp;&nbsp;&nbsp;&nbsp; ChartControl.Content.Series.DeleteAll<br>&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp; Set Series = ChartControl.Content.Series.Add("")<br>&nbsp; Series.ArgumentScaleType = xtpChartScaleDateTime<br>&nbsp; <br>&nbsp; Set Series = ChartControl.Content.Series.Add("")<br>&nbsp; Series.ArgumentScaleType = xtpChartScaleDateTime<br>&nbsp; <br>&nbsp; 'Fill Series<br>&nbsp; DateTimeMin = &#091;Min-DateTime of ChartSeries&#093;<br>&nbsp; DateTimeMax = &#091;Max-DateTime of ChartSeries&#093;<br>&nbsp; <br>&nbsp; '----&gt; Do<br>&nbsp; '----&gt;&nbsp;&nbsp;&nbsp; Series.Points.Add&nbsp; CDate(chartArgument), chartValue<br>&nbsp; '----&gt; Loop<br>&nbsp; <br>&nbsp; 'Set Style and some settings<br>&nbsp; Set Series.Style = Style<br>&nbsp; <br>&nbsp; Style.Label.visible = False<br>&nbsp; Style.Marker.Size = 5<br>&nbsp; Style.Marker.visible = True&nbsp; <br><br>&nbsp; Set Diagram = ChartControl.Content.Diagrams(0)<br>&nbsp; With Diagram<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowScroll = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowZoom = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .AxisX<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Range<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoRange = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ViewAutoRange = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .AxisY<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AllowZoom = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .Range<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .AutoRange = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ViewAutoRange = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp; End With<br>&nbsp;<br>&nbsp; 'CustomLabels<br>&nbsp; DateTimeAkt = CDate(Int((CDbl(DateTimeMin) * 96) + 0.5) / 96)<br>&nbsp; Diagram.AxisX.CustomLabels.Add Format(DateTimeAkt, "h:nn"), DateTimeAkt<br>&nbsp; Do Until DateTimeAkt &gt; DateTimeMax<br>&nbsp;&nbsp;&nbsp;&nbsp; DateTimeAkt = DateTimeAkt + TimeSerial(0, 15, 0)<br>&nbsp;&nbsp;&nbsp;&nbsp; Diagram.AxisX.CustomLabels.Add Format(DateTimeAkt, "h:nn"), DateTimeAkt<br>&nbsp; Loop&nbsp; </font><br>]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 04:58:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63694&amp;title=xtpchartscaledatetime-with-zoom#63694</guid>
  </item> 
  <item>
   <title><![CDATA[xtpChartScaleDateTime with Zoom :     Thanks for that - but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63693&amp;title=xtpchartscaledatetime-with-zoom#63693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4627">Andrew666</a><br /><strong>Subject:</strong> 18159<br /><strong>Posted:</strong> 04 April 2011 at 4:31am<br /><br />Thanks for that - but it appears that every time the zoom changes I'd have to re-calculate this for the label periods to fit properly?&nbsp; Looks like your solution would be fine on a fixed (no zoom allowed) axis though - thanks.]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 04:31:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63693&amp;title=xtpchartscaledatetime-with-zoom#63693</guid>
  </item> 
  <item>
   <title><![CDATA[xtpChartScaleDateTime with Zoom : I have done this with a workaround....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63691&amp;title=xtpchartscaledatetime-with-zoom#63691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4564">mimue</a><br /><strong>Subject:</strong> 18159<br /><strong>Posted:</strong> 04 April 2011 at 2:54am<br /><br />I have done this with a workaround. I use the CustomLabels. The sample sets the timelabels every 15 minutes.<br><br><font face="Courier New, Courier, mono">Dim DateTimeMin As Date, DateTimeMax As Date, DateTimeAkt As Date<br><br>&nbsp; DateTimeMin = &#091;Min-DateTime of ChartSeries&#093;<br>&nbsp; DateTimeMax = &#091;Max-DateTime of ChartSeries&#093;<br>&nbsp; <br>&nbsp; DateTimeAkt = CDate(Int((CDbl(DateTimeMin) * 96) + 0.5) / 96)<br>&nbsp; Diagram.AxisX.CustomLabels.Add Format(DateTimeAkt, "h:nn"), DateTimeAkt<br>&nbsp; Do Until DateTimeAkt &gt; DateTimeMax<br>&nbsp;&nbsp;&nbsp;&nbsp; DateTimeAkt = DateTimeAkt + TimeSerial(0, 15, 0)<br>&nbsp;&nbsp;&nbsp;&nbsp; Diagram.AxisX.CustomLabels.Add Format(DateTimeAkt, "h:nn"), DateTimeAkt<br>&nbsp; Loop </font><br>]]>
   </description>
   <pubDate>Mon, 04 Apr 2011 02:54:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63691&amp;title=xtpchartscaledatetime-with-zoom#63691</guid>
  </item> 
  <item>
   <title><![CDATA[xtpChartScaleDateTime with Zoom :   If the ArgumentScaleType =...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63689&amp;title=xtpchartscaledatetime-with-zoom#63689</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4627">Andrew666</a><br /><strong>Subject:</strong> 18159<br /><strong>Posted:</strong> 03 April 2011 at 3:27pm<br /><br />If the ArgumentScaleType = xtpChartScaleDateTime and the chart zoom is applied, dates are always displayed and never times. This means that when you zoom to less than one day in axis range, you just get the date repeated multiple times at the major tick points.&nbsp; Not much use.<div>&nbsp;</div><div>Is there a way to display time as well as date in these circumstances?&nbsp; Thanks.</div><div>&nbsp;</div><div>Here's a screen shot illustrating the issue:</div><div>&nbsp;</div><div><img src="uploads/4627/chart_datetime_problem.gif" height="38" width="572" border="0" /></div>]]>
   </description>
   <pubDate>Sun, 03 Apr 2011 15:27:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18159&amp;PID=63689&amp;title=xtpchartscaledatetime-with-zoom#63689</guid>
  </item> 
 </channel>
</rss>