ASPX Code
<%@ Page language="c#" MasterPageFile="~/SampleCode/SamplesMasterPage.master" Inherits="SmartWebControls.SampleCode.RoundedCorners" CodeFile="RoundedCorners.aspx.cs" %>
<%@ Register TagPrefix="swc" Namespace="SmartWebControls" Assembly="SmartWebControls.SmartChart" %>
<asp:Content ID="content" runat="server" ContentPlaceHolderID="cphMain">
<div id="divTitle">Displaying SmartChart Items with Rounded Corners</div>
<swc:SmartChartPro id="SmartChart1" TextOnly="false" Height="350" Width="660" MaxTextLength="35" BackgroundImage=""
DataTitleFields="add1,add2,city,state,zip,county,phone,notes" DataNodeName="organization"
DataKeyField="key" DataFields="title,name,orgname" BoxColor="LightGray" BoxGradient="True"
BoxTextColor="Navy" ImageType="png" SmartChartDirectory="~/ImageFolder" AllowDrillDown="True"
Font-Size="8pt" ShadowOffset="5" TitleColor="MidnightBlue" MaxChildrenPerLevelGroup="4" XSpacing="5"
runat="server" DrawBorder="false" Font-Bold="True" Font-Names="Arial" RoundBoxEdgesAmount="10"
OutputType="Image" RoundBoxEdges="True"></swc:SmartChartPro>
</asp:Content>C# Code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
namespace SmartWebControls.SampleCode {
/// <summary>
/// Summary description for OrgsTest2.
/// </summary>
public partial class RoundedCorners : System.Web.UI.Page {
protected void Page_Load(object sender, System.EventArgs e) {
if (!Page.IsPostBack) {
string xmlPath = Server.MapPath("~/SampleCode/SmartChartPro/XML/Orgs2.xml");
XmlDocument doc = new XmlDocument();
doc.Load(xmlPath);
SmartChart1.DataSource = doc;
SmartChart1.DataBind();
}
}
}
}