'm using UltraWebCharts to plot Gantt chart in my Web form.
I have few queries regarding this controls:
1. Is it possible to move X-Axis position? Currently its at bottom of the chart, I need to move it to the top.
2. Bottom Title and X-axis labels are overlaping. Ho to resolve it?
Thanks
Hello Harjot,
After investigating this further, I determined that the x-axis could be positioned to the top of the chart by hiding the x-axis and displaying x2-axis. This could be achieved from the quick design of the Gantt chart in the Axis group of the explorer bar:
The code in the Default.aspx would look as follows:
<igchart:UltraChart ID="UltraChart1" runat="server" ChartType="GanttChart" . . . >
<Axis>
<X Visible="false" TickmarkInterval="0">
. . .
<Labels ItemFormatString="<ITEM_LABEL:MM-dd-yy>oooooooooooooo" Visible="True" FontColor="" HorizontalAlign="Near" VerticalAlign="Center" Orientation="VerticalLeftFacing">
</Labels>
</X>
<X2 Visible="true" TickmarkInterval="0">
</X2>
</Axis>
Regarding your second requirement, the margins of the x axis and x2 axis could be modified, in order to change the horizontal position of the chart.
<Margin>
<Far Value="25.362318840579711" />
</Margin>
Below I am attaching a sample, demonstrating the described behavior. Please test it on your side and let me if you need any further information regarding this matter.
Regards, Monika Kirkova, Infragistics
WebChartGanttChart.zip
Thanks Monika Kirkova.
It is working