Gallery
Version History Gantt
<%@ Page Language="C#" trace="false" Description="dotnetCHARTING Component"%>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<script runat="server">
void Page_Load(Object sender,EventArgs e)
{
//set global properties
Chart.Size = "1300X600";
Chart.TempDirectory="temp";
Chart.Debug=true;
Chart.Title=".netCHARTING Version History";
Chart.Type=ChartType.Gantt;
Chart.ShadingEffect=true;
Chart.Use3D=true;
Chart.Depth=10;
Chart.YAxis.Label.Text="Versions";
Chart.XAxis.Scale = Scale.Time;
Chart.ChartArea.Label.Text="We continue to innovate and solve\nreal-world client issues. Discover the\ndifference .netCHARTING can make!";
Chart.XAxis.TimePadding = new TimeSpan(1,0,0,0);
Chart.TitleBox.Position = TitleBoxPosition.FullWithLegend;
//Add a series
Chart.Series.ConnectionString = ConfigurationManager.AppSettings["DNCConnectionString"];
Chart.Series.DataFields="ganttstartdate=startDate,ganttenddate=ReleaseDate,ganttname=Version";
Chart.Series.DefaultElement.ShowValue=true;
Chart.Series.PaletteName=Palette.Two;
Chart.Series.SqlStatement= @"SELECT StartDate,ReleaseDate,Version FROM Versions WHERE Version <> '1.0'";
Chart.SeriesCollection.Add();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>.netCHARTING Version History</title></head>
<body>
<div style="text-align:center">
<dotnet:Chart id="Chart" runat="server"/>
</div>
</body>
</html>
<%@ Page Language="vb" trace="false" Description="dotnetCHARTING Component"%>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<script runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
'set global properties
Chart.Size = "1300X600"
Chart.TempDirectory="temp"
Chart.Debug=True
Chart.Title=".netCHARTING Version History"
Chart.Type=ChartType.Gantt
Chart.ShadingEffect=True
Chart.Use3D=True
Chart.Depth=10
Chart.YAxis.Label.Text="Versions"
Chart.XAxis.Scale = Scale.Time
Chart.ChartArea.Label.Text="We continue to innovate and solve" & Constants.vbLf & "real-world client issues. Discover the" & Constants.vbLf & "difference .netCHARTING can make!"
Chart.XAxis.TimePadding = New TimeSpan(1,0,0,0)
Chart.TitleBox.Position = TitleBoxPosition.FullWithLegend
'Add a series
Chart.Series.ConnectionString = ConfigurationManager.AppSettings("DNCConnectionString")
Chart.Series.DataFields="ganttstartdate=startDate,ganttenddate=ReleaseDate,ganttname=Version"
Chart.Series.DefaultElement.ShowValue=True
Chart.Series.PaletteName=Palette.Two
Chart.Series.SqlStatement= "SELECT StartDate,ReleaseDate,Version FROM Versions WHERE Version <> '1.0'"
Chart.SeriesCollection.Add()
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>.netCHARTING Version History</title></head>
<body>
<div style="text-align:center">
<dotnet:Chart id="Chart" runat="server"/>
</div>
</body>
</html>
- Sample FilenameVersionHistoryGantt.aspx
- VersionLegacy (Pre 3.0)
- Uses DatabaseYes