Nevron Forum

How to draw chart with non-continuous data in continuous mode?

https://www.nevron.com/Forum/Topic5644.aspx

By XianDui Dong - Monday, October 3, 2011

How to draw chart with non-continuous data in continuous mode?

I mean for example:

for Date/time stock chart,  there are no data on Sunday or holiday.

When draw chart for stock chart, there are data-blank on Sunday or holiday.

Is it possible to draw chart  without data-blank ?

I mean  to draw candles or curve with data sequence but lable on X-AXis still with date/time.

Reference the attached image, do not draw the region of 3/29/2003 and 3/30/2003.

 

 

By Nevron Support - Monday, October 3, 2011

Hi XianDui,

Check out the following example: All Examples\Axes\Scaling\Date Time work calendar. It shows how to hide Sat/Sun from a date / time scale.

 

 

By XianDui Dong - Monday, October 17, 2011

"Check out the following example: All Examples\Axes\Scaling\Date Time work calendar. It shows how to hide Sat/Sun from a date / time scale."

 

not only Sat/Sun, how about holidays?

in fact, I need such mode: draw data in order of dataself (for example: use array element's order as X), but draw X-axie's labels in datatime.

By Nevron Support - Wednesday, October 19, 2011

Hi Okwh,

In order to exclude specific dates you'll have to add additoinal month day rules - in the example the rule is added so it applies to each first day of each month, but you can tweak that using the month bit value - for example:

NMonthDayRule monthDayRule = new NMonthDayRule();

monthDayRule.Day = 19;
monthDayRule.Working = false;
monthDayRule.Months =
MonthBit.October;
someCalendar.Rules.Add(monthDayRule);

add October/19 as an explicit non-working day.

Alternatively you can use an ordinal scale combined with custom labels - check out the Scaling\Hierarchical Scale example.

By XianDui Dong - Wednesday, October 19, 2011

NMonthDayRule.

Maybe  hourRule is more good.

I think  use Custom labels is better.