Gallery
JS Bullet Options
<%@ 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 several features of the bullet microChart.
Chart.JS.Enabled = true;
Chart.Size = "400x500";
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;'>Bullet Type Options</span><hr><ul>";
// Bullet types.
s += "<li><span style='width:200px'>Simple Bullet</span></span><chart:Bullet values='15,10' ></li>";
s += "<li><span style='width:200px'>One Shaded Area</span></span><chart:Bullet values='15,10,8' ></li>";
s += "<li><span style='width:200px'>Full Bullet</span></span><chart:Bullet values='15,10,4,8' ></li>";
s += "<li><span style='width:200px'>Reversed shading</span></span><chart:Bullet values='15,10,8,4' ><hr></li>";
// Bullet ShadingEffect modes.
s += "<li><span style='width:200px'>Shading Effect 1</span></span><chart:Bullet values='15,10,4,8' shading='1' color='CornflowerBlue'></li>";
s += "<li><span style='width:200px'>Shading Effect 2</span></span><chart:Bullet values='15,10,4,8' shading='2' color='DarkCyan'></li>";
s += "<li><span style='width:200px'>Shading Effect 3</span></span><chart:Bullet values='15,10,4,8' shading='3' color='Navy'></li>";
s += "<li><span style='width:200px'>Shading Effect 4</span></span><chart:Bullet values='15,10,4,8' shading='4' color='DarkRed'></li>";
s += "<li><span style='width:200px'>Shading Effect 5</span></span><chart:Bullet values='15,10,4,8' shading='5' color='YellowGreen'></li>";
s += "<li><span style='width:200px'>Shading Effect 7</span></span><chart:Bullet values='15,10,4,8' shading='7' color='SeaGreen'><hr></li>";
// Specifying colors
s += "<li><span style='width:200px'>Bullet SimpleColor Blue</span></span><chart:Bullet values='15,10,4,8' color='Blue'></li>";
s += "<li><span style='width:200px'>Bullet SimpleColor Maroon</span></span><chart:Bullet values='15,10,4,8' color='Maroon'></li>";
s += "<li><span style='width:200px'>Bullet Full Color Control</span></span><chart:Bullet values='15,10,4,8' Colors='MidnightBlue,Green,Blue,CornflowerBlue,LightSkyBlue'></li>";
s += "<li><span style='width:200px'>Coloring & Transparent Back</span></span><chart:Bullet values='15,10,4,8' Colors='MidnightBlue,Red,Blue,CornflowerBlue,Transparent'><hr></li>";
// Using negative values
s += "<li><span style='width:200px'>Full with scale max</span></span><chart:Bullet values='15,10,4,8' max='20'></li>";
s += "<li><span style='width:200px'>Full with negative values</span></span><chart:Bullet values='-15,-10,-4,-8' ></li>";
s += "<li><span style='width:200px'>Negative values & one area</span></span><chart:Bullet values='-15,-10,-8' ></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 several features of the bullet microChart.
Chart.JS.Enabled = True
Chart.Size = "400x500"
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;'>Bullet Type Options</span><hr><ul>"
' Bullet types.
s &= "<li><span style='width:200px'>Simple Bullet</span></span><chart:Bullet values='15,10' ></li>"
s &= "<li><span style='width:200px'>One Shaded Area</span></span><chart:Bullet values='15,10,8' ></li>"
s &= "<li><span style='width:200px'>Full Bullet</span></span><chart:Bullet values='15,10,4,8' ></li>"
s &= "<li><span style='width:200px'>Reversed shading</span></span><chart:Bullet values='15,10,8,4' ><hr></li>"
' Bullet ShadingEffect modes.
s &= "<li><span style='width:200px'>Shading Effect 1</span></span><chart:Bullet values='15,10,4,8' shading='1' color='CornflowerBlue'></li>"
s &= "<li><span style='width:200px'>Shading Effect 2</span></span><chart:Bullet values='15,10,4,8' shading='2' color='DarkCyan'></li>"
s &= "<li><span style='width:200px'>Shading Effect 3</span></span><chart:Bullet values='15,10,4,8' shading='3' color='Navy'></li>"
s &= "<li><span style='width:200px'>Shading Effect 4</span></span><chart:Bullet values='15,10,4,8' shading='4' color='DarkRed'></li>"
s &= "<li><span style='width:200px'>Shading Effect 5</span></span><chart:Bullet values='15,10,4,8' shading='5' color='YellowGreen'></li>"
s &= "<li><span style='width:200px'>Shading Effect 7</span></span><chart:Bullet values='15,10,4,8' shading='7' color='SeaGreen'><hr></li>"
' Specifying colors
s &= "<li><span style='width:200px'>Bullet SimpleColor Blue</span></span><chart:Bullet values='15,10,4,8' color='Blue'></li>"
s &= "<li><span style='width:200px'>Bullet SimpleColor Maroon</span></span><chart:Bullet values='15,10,4,8' color='Maroon'></li>"
s &= "<li><span style='width:200px'>Bullet Full Color Control</span></span><chart:Bullet values='15,10,4,8' Colors='MidnightBlue,Green,Blue,CornflowerBlue,LightSkyBlue'></li>"
s &= "<li><span style='width:200px'>Coloring & Transparent Back</span></span><chart:Bullet values='15,10,4,8' Colors='MidnightBlue,Red,Blue,CornflowerBlue,Transparent'><hr></li>"
' Using negative values
s &= "<li><span style='width:200px'>Full with scale max</span></span><chart:Bullet values='15,10,4,8' max='20'></li>"
s &= "<li><span style='width:200px'>Full with negative values</span></span><chart:Bullet values='-15,-10,-4,-8' ></li>"
s &= "<li><span style='width:200px'>Negative values & one area</span></span><chart:Bullet values='-15,-10,-8' ></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 FilenameJsMicroBulletOptions.aspx
- Version9.2
- Uses DatabaseNo