This is a migrated thread and some comments may be shown as answers.

Vertical seperator in Gantt chart?

3 Answers 58 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Joel asked on 15 Dec 2010, 09:47 PM
I have created a dynamic Gantt chart that my customer likes (attached distribution.jpg), but they want a vertical line running down the midpoint to make it stand out better (x 3.5 in this case which the user enters via a textbox, along with min and max for x axis).  Any suggestions on how to accomplish this?  (attachment distribution_desired.png is what I am looking to do)

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 20 Dec 2010, 07:18 PM
Hi Joel,

Generally RadChart does not provide support for rendering custom gridlines like this but you can achieve similar visual effect by using really thin MarkedZone instance like this:

<telerik:RadChart ID="RadChart1" runat="Server" SeriesOrientation="Horizontal">
    <Series>
        <telerik:ChartSeries Type="Gantt">
            <Items>
                <telerik:ChartSeriesItem YValue="20" YValue2="30" XValue="1" />
                <telerik:ChartSeriesItem YValue="10" YValue2="20" XValue="2" />
            </Items>
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <MarkedZones>
            <telerik:ChartMarkedZone ValueStartY="20" ValueEndY="20"
            Appearance-Border-Width="2" Appearance-Border-Color="Red" />
        </MarkedZones>
    </PlotArea>
</telerik:RadChart>

Hope this helps.


All the best,
Freddie
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Joel
Top achievements
Rank 2
answered on 20 Dec 2010, 09:27 PM
That is a great solution, thank you!  Is there a way to control the z-index of the marked zone to overlay the series?
0
Giuseppe
Telerik team
answered on 21 Dec 2010, 06:29 PM
Hello Joel,

Unfortunately customizing the z-index is not supported for the marked zone and it would not be possible to achieve the desired effect.


All the best,
Freddie
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Joel
Top achievements
Rank 2
Answers by
Giuseppe
Telerik team
Joel
Top achievements
Rank 2
Share this question
or