Gallery
<%@ Page Language="C#" Description="dotnetCHARTING Component" %>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING" %>
<%@ Import Namespace="System.Drawing" %>
<script runat="server">
void Page_Load(Object sender, EventArgs e)
{
// Demonstrates column type microchart options.
Chart.JS.Enabled = true;
Chart.Size = "450x600";
Chart.TempDirectory = "temp";
Chart.Background.Color = Color.FromArgb(249,249,255);
Chart.JS.Buttons.EnableExportButton = false;
Chart.JS.Buttons.EnablePrintButton = false;
string s = "<span style='font-size:14px; font-weight: bold;'>Column Type Options</span><hr><ul>";
s += "<li><span style='width:200px'>Plain Column Chart</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,5,6,3,2'></li>";
// Zero values are always shown so they can be used as placeholders.
s += "<li><span style='width:200px'>With 0 values</span><chart:Column margin='3' values='0,0,0,10,7,3,2,7,4,5,0,0,0'></li>";
// Negative values are colored in red by default.
s += "<li><span style='width:200px'>With (-) & (+) values</span><chart:Column margin='3' values='10,7,3,2,7,4,-5,-6,-3,-2'></li>";
s += "<li><span style='width:200px'>With (-) & (+) & 0 values</span><chart:Column margin='3' values='10,7,3,2,7,4,0,0,0,-5,-6,-3,-2'></li>";
// When a column microChart width is not specified it is determined automatically.
s += "</ul><br><b>Sizing</b><hr><ul>";
s += "<li><span style='width:200px'>Height specified</span><chart:Column margin='3' values='5,8,10,7,3' height='25'></li>";
// When only the height is specified, the column widths are based on the height and chart width is determined by the column width and number of elements shown.
s += "<li><span style='width:200px'>Height specified</span><chart:Column margin='3' values='5,8,10,7,3' height='30'></li>";
s += "<li><span style='width:200px'>Height specified-width is dynamic</span><chart:Column margin='3' values='5,8,10,7,3,3,5' height='30'></li>";
s += "<li><span style='width:200px'>Height & Width specified</span><chart:Column margin='3' values='5,8,10,7,3' height='30' width='30'></li>";
s += "<li><span style='width:200px'>Height & Width specified</span><chart:Column margin='3' values='5,8,10,7,3' height='30' width='70'></li>";
s += "</ul><br><b>AxisMarker</b><hr><ul>";
// A reference line can be used by specifying a value in the AxisMarker parameter.
s += "<li><span style='width:200px'>Column with a AxisMarker line</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,5,6,3,2' AxisMarker='5'></li>";
// A portion of the y axis can be marked by using two values in the AxisMarker parameter.
s += "<li><span style='width:200px'>Column with a range AxisMarker</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,5,6,3,2' AxisMarker='3,7'></li>";
// Specifying colors.
s += "</ul><br><b>Coloring</b><hr><ul>";
s += "<li><span style='width:200px'>Specifying colors</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,-5,-6,-3,-2' AxisMarker='5,8' colors='DarkCyan,DeepPink,Yellow'></li>";
s += "</ul></span>";
Chart.ObjectChart = new dotnetCHARTING.Label(s);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.netCHARTING Sample</title>
</head>
<body>
<div align="center">
<dotnet:Chart ID="Chart" runat="server" />
</div>
</body>
</html>
<%@ Page Language="vb" 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)
' Demonstrates column type microchart options.
Chart.JS.Enabled = True
Chart.Size = "450x600"
Chart.TempDirectory = "temp"
Chart.Background.Color = Color.FromArgb(249,249,255)
Chart.JS.Buttons.EnableExportButton = False
Chart.JS.Buttons.EnablePrintButton = False
Dim s As String = "<span style='font-size:14px; font-weight: bold;'>Column Type Options</span><hr><ul>"
s &= "<li><span style='width:200px'>Plain Column Chart</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,5,6,3,2'></li>"
' Zero values are always shown so they can be used as placeholders.
s &= "<li><span style='width:200px'>With 0 values</span><chart:Column margin='3' values='0,0,0,10,7,3,2,7,4,5,0,0,0'></li>"
' Negative values are colored in red by default.
s &= "<li><span style='width:200px'>With (-) & (+) values</span><chart:Column margin='3' values='10,7,3,2,7,4,-5,-6,-3,-2'></li>"
s &= "<li><span style='width:200px'>With (-) & (+) & 0 values</span><chart:Column margin='3' values='10,7,3,2,7,4,0,0,0,-5,-6,-3,-2'></li>"
' When a column microChart width is not specified it is determined automatically.
s &= "</ul><br><b>Sizing</b><hr><ul>"
s &= "<li><span style='width:200px'>Height specified</span><chart:Column margin='3' values='5,8,10,7,3' height='25'></li>"
' When only the height is specified, the column widths are based on the height and chart width is determined by the column width and number of elements shown.
s &= "<li><span style='width:200px'>Height specified</span><chart:Column margin='3' values='5,8,10,7,3' height='30'></li>"
s &= "<li><span style='width:200px'>Height specified-width is dynamic</span><chart:Column margin='3' values='5,8,10,7,3,3,5' height='30'></li>"
s &= "<li><span style='width:200px'>Height & Width specified</span><chart:Column margin='3' values='5,8,10,7,3' height='30' width='30'></li>"
s &= "<li><span style='width:200px'>Height & Width specified</span><chart:Column margin='3' values='5,8,10,7,3' height='30' width='70'></li>"
s &= "</ul><br><b>AxisMarker</b><hr><ul>"
' A reference line can be used by specifying a value in the AxisMarker parameter.
s &= "<li><span style='width:200px'>Column with a AxisMarker line</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,5,6,3,2' AxisMarker='5'></li>"
' A portion of the y axis can be marked by using two values in the AxisMarker parameter.
s &= "<li><span style='width:200px'>Column with a range AxisMarker</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,5,6,3,2' AxisMarker='3,7'></li>"
' Specifying colors.
s &= "</ul><br><b>Coloring</b><hr><ul>"
s &= "<li><span style='width:200px'>Specifying colors</span><chart:Column margin='3' values='5,8,10,7,3,2,7,4,-5,-6,-3,-2' AxisMarker='5,8' colors='DarkCyan,DeepPink,Yellow'></li>"
s &= "</ul></span>"
Chart.ObjectChart = New dotnetCHARTING.Label(s)
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.netCHARTING Sample</title>
</head>
<body>
<div align="center">
<dotnet:Chart ID="Chart" runat="server" />
</div>
</body>
</html>
- Sample FilenameJsMicroColumnOptions.aspx
- Version9.2
- Uses DatabaseNo