Gallery
Box Header Orientation
<%@ Page Language="C#" Description="dotnetCHARTING Component" %>
<%@ Register TagPrefix="dnc" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>
<%@ Import Namespace="dotnetCHARTING.Mapping" %>
<script runat="server">
void Page_Load(Object sender, EventArgs e)
{
// Demonstrates box header orientation settings.
Chart.Size = "340x180";
Chart.TempDirectory = "temp";
Chart.Debug = true;
Chart.NoDataLabel.Text = "";
Chart.DefaultBox.Background.Color = Color.FromArgb(248, 248, 248);
Annotation a1 = new Annotation("Annotation Content");
a1.Header.Label.Text = "Top Orientation";
Annotation a2 = new Annotation("Annotation Content");
a2.Header.Label.Text = "Bottom Orientation";
a2.Header.Orientation = dotnetCHARTING.Orientation.Bottom;
Annotation a3 = new Annotation("Annotation Content");
a3.Header.Label.Text = "Right Orientation";
a3.Header.Orientation = dotnetCHARTING.Orientation.Right;
Annotation a4 = new Annotation("Annotation Content");
a4.Header.Label.Text = "Left Orientation";
a4.Header.Orientation = dotnetCHARTING.Orientation.Left;
a1.Position = new Point(120, 20);
a2.Position = new Point(115, 110);
a3.Position = new Point(230, 40);
a4.Position = new Point(20, 40);
Chart.Annotations.Add(a1, a2, a3, a4);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.netCHARTING Sample</title>
</head>
<body>
<div align="center">
<dnc:Chart ID="Chart" runat="server" />
</div>
</body>
</html>
<%@ Page Language="vb" Description="dotnetCHARTING Component" %>
<%@ Register TagPrefix="dnc" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>
<%@ Import Namespace="dotnetCHARTING.Mapping" %>
<script runat="server">
Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
' Demonstrates box header orientation settings.
Chart.Size = "340x180"
Chart.TempDirectory = "temp"
Chart.Debug = True
Chart.NoDataLabel.Text = ""
Chart.DefaultBox.Background.Color = Color.FromArgb(248, 248, 248)
Dim a1 As Annotation = New Annotation("Annotation Content")
a1.Header.Label.Text = "Top Orientation"
Dim a2 As Annotation = New Annotation("Annotation Content")
a2.Header.Label.Text = "Bottom Orientation"
a2.Header.Orientation = dotnetCHARTING.Orientation.Bottom
Dim a3 As Annotation = New Annotation("Annotation Content")
a3.Header.Label.Text = "Right Orientation"
a3.Header.Orientation = dotnetCHARTING.Orientation.Right
Dim a4 As Annotation = New Annotation("Annotation Content")
a4.Header.Label.Text = "Left Orientation"
a4.Header.Orientation = dotnetCHARTING.Orientation.Left
a1.Position = New Point(120, 20)
a2.Position = New Point(115, 110)
a3.Position = New Point(230, 40)
a4.Position = New Point(20, 40)
Chart.Annotations.Add(a1, a2, a3, a4)
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.netCHARTING Sample</title>
</head>
<body>
<div align="center">
<dnc:Chart ID="Chart" runat="server" />
</div>
</body>
</html>
- Sample FilenameBoxHeaderOrientation.aspx
- Version6.2
- Uses DatabaseNo