ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Dont want gaps in linecharts
Posted by Rob on Mar-24-2009 02:52
Hello,
I am plotting a line chart over a time based x axis. I have various jobs with start and end dates. Each job updates data on a different weekly cycle. Some once a week on any given day, some jobs can be semi weekly. For my x axis I have picked the earliest start date and latest end date for the job set and have set as labels every day in between. I want to plot the data each job updates weekly. Since each job dataset will start appearing on different dates, I have passed 'NoValue' to any date for which there is no data. This gives me equal size datasets that I can plot on my chart and have the data line up correctly with the X-axis label. However my problem is that I have gaps in each data set for the days that a certain job didn't. Is there a way I can tell chart director to simply connect each node in a data set with a line instead of leaving gaps for "NoValue'? Thank you.

  Re: Dont want gaps in linecharts
Posted by Peter Kwan on Mar-24-2009 03:53
Hi Rob,

Yes. By default, ChartDirector connects the gaps with a line of transparent color. You can change it to any color you like, such as using the same color as the original line. For example, in VB/VBScript, it is like:

Set layer = c.addLineLayer(...............)

'set the gap color to the same color as the line
Call layer.setGapColor(cd.SameAsMainColor)

Hope this can help.

Regards
Peter Kwan