Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Chart Control
  New Posts New Posts RSS Feed - Weird problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Weird problem

 Post Reply Post Reply
Author
Message
ceesverburg View Drop Down
Newbie
Newbie
Avatar

Joined: 27 March 2011
Location: Vietnam
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote ceesverburg Quote  Post ReplyReply Direct Link To This Post Topic: Weird problem
    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?


Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.