Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
reverse y axis
posted

hi,

I'm making and ganttchart when I put in the tasks the first start on the left bottom y axis but I like it to start at the left top, is there a way to do this?

And I like the x axis to show the week numbers.

 

  • 28496
    Verified Answer
    Offline posted

    smangelschots said:
    I'm making and ganttchart when I put in the tasks the first start on the left bottom y axis but I like it to start at the left top, is there a way to do this?

    only by reversing the order of the data.

    smangelschots said:
    And I like the x axis to show the week numbers.

    here's an IRenderLabel implementation that will print the week numbers.

            string IRenderLabel.ToString(Hashtable context)
            {
                DateTime dt = DateTime.Parse(context["ITEM_LABEL"].ToString());
                int week = CultureInfo.CurrentCulture.Calendar.GetWeekOfYear(dt, CalendarWeekRule.FirstFourDayWeek, DayOfWeek.Monday);
                return "Week " + week;
            }