Print Page | Close Window

Weird problem

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=18123
Printed Date: 02 May 2024 at 11:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Weird problem
Posted By: ceesverburg
Subject: Weird problem
Date Posted: 27 March 2011 at 5:08am
Hi there,

I made a chartcontrol with 3 series: 2009, 2010, 2011 each with max 12 points (Jan, Feb, Mar, etc.). When a value is empty I don't want to add a point. The problem is that the points now not always are shown in the right order. Of course it should be Jul, Aug, Sep, Oct and not like in the picture below (Jul, Sep, Aug, Oct) but whatever I try. This is the code I use:

Series1.Points.Add "Jul", 4550
Series1.Points.Add "Sep", 9170
Series1.Points.Add "Oct", 1608

Series2.Points.Add "Jul", 6034
Series2.Points.Add "Aug", 386
Series2.Points.Add "Oct", 1608

Series3.Points.Add "Jul", 3810
Series3.Points.Add "Oct", 2552

Any suggestions?





Replies:
Posted By: jpbro
Date Posted: 27 March 2011 at 8:39am
Can you post the rest of the code that generates that chart - I would like to help, but I don't have time to do the rest of the code to generate the chart and play around with it to see if I can meet your requirements.



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Fabian
Date Posted: 27 March 2011 at 9:55am
Hi
 
That is a problem since the first release of ChartPro. It seems not possible to set 'missing' points like
 
Set Point = Series.Points.Add ...
Point.IsMissing = True
 
For this point nothing should be drawn but the space must be reserved. That holds true for charts like: Lines, Splines, HiLo, Bar, Point, Area and all stacked variants


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



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