Profile Picture

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

Posted By okwh 13 Years Ago

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

Author
Message
okwh
Posted 13 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 13 Years Ago
Posts: 3, Visits: 1

NMonthDayRule.

Maybe  hourRule is more good.

I think  use Custom labels is better.



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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



okwh
Posted 13 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 13 Years Ago
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
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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



okwh
Posted 13 Years Ago
View Quick Profile
Forum Newbie

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
Last Active: 13 Years Ago
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.

 

 





Similar Topics


Reading This Topic