1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GenerateGraph.aspx.cs" Inherits="GenerateGraph" %>
<%@ Register TagPrefix="dcwc" Namespace="Dundas.Charting.WebControl" Assembly="DundasWebChart" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<div id="MyDiv">
<!-- GRAPH STARTS HERE -->
<form id="Form1" method="post" runat="server">
<p class="dscr">This sample demonstrates scrolling and zooming.</p>
<table class="sampleTable">
<tr>
<td width="412" class="tdchart">
<DCWC:CHART id="chart1" runat="server" Palette="Dundas" BackColor="#F3DFC1" ImageUrl="~/TempImages/ChartPic_#SEQ(300,3)" Width="412px" Height="296px" BorderLineStyle="Solid" BackGradientType="TopBottom" BorderLineWidth="2" BorderLineColor="181, 64, 1">
<Legends>
<dcwc:Legend Enabled="False" AutoFitText="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"></dcwc:Legend>
</Legends>
<BorderSkin SkinStyle="Emboss"></BorderSkin>
<Series>
<dcwc:Series BorderWidth="3" XValueType="Double" Name="Series1" ChartType="Line" ShadowColor="254, 21, 21, 21" BorderColor="180, 26, 59, 105" Color="254, 65, 140, 240" ShadowOffset="1" YValueType="Double"></dcwc:Series>
<dcwc:Series BorderWidth="3" XValueType="Double" Name="Series2" ChartType="Line" ShadowColor="254, 21, 21, 21" BorderColor="180, 26, 59, 105" Color="254, 224, 64, 10" ShadowOffset="1" YValueType="Double"></dcwc:Series>
</Series>
<ChartAreas>
<dcwc:ChartArea Name="Default" BorderColor="64, 64, 64, 64" BorderStyle="Solid" BackGradientEndColor="White" BackColor="OldLace" ShadowColor="Transparent" >
<Area3DStyle YAngle="25" Perspective="9" Light="Realistic" XAngle="40" RightAngleAxes="False" WallWidth="3" Clustered="True"></Area3DStyle>
<AxisY LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" Interval="Auto" IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Auto"></LabelStyle>
<MajorGrid LineColor="64, 64, 64, 64" Interval="Auto" IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Auto"></MajorGrid>
<MajorTickMark Interval="Auto" IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Auto" />
</AxisY>
<AxisX LineColor="64, 64, 64, 64">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" Interval="Auto" IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Auto"></LabelStyle>
<MajorGrid LineColor="64, 64, 64, 64" Interval="Auto" IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Auto"></MajorGrid>
<MajorTickMark Interval="Auto" IntervalOffset="Auto" IntervalOffsetType="Auto" IntervalType="Auto" />
</AxisX>
</dcwc:ChartArea>
</ChartAreas>
</DCWC:CHART>
</td>
<td valign="top">
<table class="controls" cellpadding="4">
<tr>
<td class="label">
Enable Zooming:</td>
<td>
<asp:DropDownList id="AxisList" runat="server" Width="109px" AutoPostBack="True" tabIndex="5" CssClass="spaceright" OnSelectedIndexChanged="AxisList_SelectedIndexChanged" >
<asp:ListItem Value="X Axis" Selected="True">X Axis</asp:ListItem>
<asp:ListItem Value="Y Axis">Y Axis</asp:ListItem>
<asp:ListItem Value="Both Axis">Both Axis</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
</tr>
<tr>
<td style="text-align: right">
AJAXZoomEnabled:</td><td>
<asp:CheckBox ID="CheckBoxAJAXZoomEnabled" runat="server"
AutoPostBack="True" Checked="True" OnCheckedChanged="CheckBoxAJAXZoomEnabled_CheckedChanged" /></td>
</tr>
<tr>
<td class="label" style="height: 29px"></td>
<td style="height: 29px">
<asp:Button ID="ButtonReset" runat="server" Text="Reset Zoom" OnClick="ButtonReset_Click" /></td>
</tr>
</table>
</td>
</tr>
</table>
<p class="dscr">
Click and drag the mouse to zoom in on the chart.</p>
</form>
<!-- GRAPH ENDS HERE -->
</div>
</body>
</html> |