Page 1 of 1

Dumb question about hiding weekends on time series

Posted: Mon Feb 06, 2006 6:49 pm
by 8127110
I've searched hard to find a way of making sure that a time series doesn't display gaps for weekends/public holidays (i.e. where there's no data) but I can't find any obvious candidate. The only way I've come up with is to have a sequence number for each day and use this as the XValue and then display the date separately, but this is inelegant and feels more difficult than it should be.

Bit of a newbie question but answers greatly appreciated...!

Thanks

doowell

Posted: Wed Feb 08, 2006 9:44 am
by narcis
Hi doowell,

There's a specific example for what you request. You can find it at TeeChart's features demo, available at TeeChart's program group. Search for "weekend", the example is called "Axis Labels No Weekends".

Weekends

Posted: Wed Feb 08, 2006 10:03 am
by 8127110
Hi there and thanks for the reply. When you say "available to TeeChart's program group", what does this mean? In C:\Program Files\Steema\ ??

Posted: Wed Feb 08, 2006 10:12 am
by narcis
Hi doowell,

No, I mean the start menu program group created for TeeChart for .NET installer. There you'll find the Feature demo. However, at C:\Program Files\Steema Software\TeeChart for .NET v2\Examples\DemoProject you'll also find the sources for that demo.

Weekends

Posted: Wed Feb 08, 2006 4:59 pm
by 8127110
OK, I've found it now. It works, but it feels very clumsy. Could I make a wish to have a simple flag in the next version to toggle between two modes, one displaying non-business days and the other leaving them out?

Thanks.

Posted: Thu Feb 09, 2006 9:51 am
by narcis
Hi doowell,

Sure. I've already added your request to our wish-list to be considered for inclusion in future releases.

BTW: The difficulty lies on which days are considered non-business days as it may vary on each user needs. What do you thing it would be the most generic approach, from Monday to Friday? Creating an enum type for all possibilities it may be excessive as there are many of them.

Thanks

Posted: Thu Feb 09, 2006 10:31 am
by 8127110
Narcis

I see your point and have tackled it myself in another context.

I identified the following possibilities:
- show every calendar day (like it currently does)
- show every weekday (so public holidays appear as gaps)
- show only days where there is data (no gaps at all)
- show all data PLUS gaps where the user specifies e.g. by providing a public holiday calendar object

Regards

doowell

Posted: Thu Feb 09, 2006 3:56 pm
by narcis
Hi doowell,

Thanks for your input. I've added it the wish-list item I created earlier today.