NPlot.TradingDateTimeAxis.LargeTickLabel C# (CSharp) Method

LargeTickLabel() protected method

Get an appropriate label name, given the DateTime of a label
protected LargeTickLabel ( System.DateTime tickDate ) : string
tickDate System.DateTime the DateTime to get the label name for
return string
        protected override string LargeTickLabel(DateTime tickDate)
        {
            string label;

            if ( this.NumberFormat == null
                && (LargeTickLabelType_ == LargeTickLabelType.hourMinute ||
                LargeTickLabelType_ == LargeTickLabelType.hourMinuteSeconds)
                && tickDate.TimeOfDay == StartTradingTime)
            {
                // in such case always show the day date
                label = (tickDate.Day).ToString();
                label += " ";
                label += tickDate.ToString("MMM");
            }
            else
            {
                label = base.LargeTickLabel(tickDate);
            }
            return label;
        }