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
315
Draw Text on a Gantt Bar
posted

I have built a composite chart containing a Gantt and a Line.

I'd like to draw some text on the gantt bars--for example, the name of the person assigned to the task.

Can someone point me in the right direction?

  • 26458
    Verified Answer
    Offline posted

    When you create your gantt data source, there is an Owner column of type string that can be set for any given gantt point. That string can be shown inside the gantt box when you set ShowOwners to true on your layer's ChartTypeAppearance property.

    GanttChartAppearance appearance = new GanttChartAppearance();
    appearance.ShowOwners = true;
    ganttLayer.ChartTypeAppearance = appearance;