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


Author
Message
XianDui Dong
XianDui Dong
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1

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.

 

 


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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.

 

 



Best Regards,
Nevron Support Team


XianDui Dong
XianDui Dong
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1

"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.


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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.



Best Regards,
Nevron Support Team


XianDui Dong
XianDui Dong
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)
Group: Forum Members
Posts: 3, Visits: 1

NMonthDayRule.

Maybe  hourRule is more good.

I think  use Custom labels is better.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search