Essential Studio for Asp.Net | Demos

SHOWCASE SAMPLES
Showcase samples
    <%@ Page Title="Chart-Log Axis-ASP.NET-SYNCFUSION"   Language="C#" MetaDescription="This sample demonstrates how to render logarithmic axis using Syncfusion ASP.NET Web Forms Chart control" AutoEventWireup="true" MasterPageFile="~/Samplebrowser.Master" CodeBehind="LogAxis.aspx.cs" Inherits="WebSampleBrowser.Chart.LogAxis" %>
    
     <asp:Content ID="ControlContent" runat="server" ContentPlaceHolderID="ControlsSection">
        <div>
            <script type="text/javascript" src="../Scripts/ChartData.js"></script>
            <ej:WaitingPopup runat="server" ID="waitingpopup" ShowOnInit="false"></ej:WaitingPopup>
            <ej:Chart ID="Chart1" runat="server" Width="970" Height="600" IsResponsive="true" OnClientLoad="onChartLoad">
                <PrimaryXAxis Title-Text="Years" />
                <PrimaryYAxis ValueType="Logarithmic" MinorTicksPerInterval="5" MinorGridLines-Visible="true" MinorTickLines-Visible="true" 
                    MinorTickLines-Width="1" MinorTickLines-Size="5" Title-Text="Profits" LabelFormat="${value}" />
                <Series>
                  <ej:Series EnableAnimation="True" Type="Line" Name="Gold" XName="Xvalue" YName="YValue1" 
                    Tooltip-Visible="true" ></ej:Series>
                </Series>
                <Title Text="Business Growth from 1990 to 2000"></Title>
                <Legend Visible="false"></Legend>
            </ej:Chart>
        </div>
    </asp:Content>
    
    
    using Syncfusion.JavaScript.DataVisualization;
    using Syncfusion.JavaScript.DataVisualization.Models;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    
    namespace WebSampleBrowser.Chart
    {
        public partial class LogAxis : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                //Setting Range for PrimaryXAxis
                this.Chart1.PrimaryXAxis.Range.Min =1990;
                this.Chart1.PrimaryXAxis.Range.Max = 2000;
                this.Chart1.PrimaryXAxis.Range.Interval = 1;
    
                //Setting Range for PrimaryYAxis
                this.Chart1.PrimaryYAxis.Range.Min = 10;
                this.Chart1.PrimaryYAxis.Range.Max = 10000;
                this.Chart1.PrimaryYAxis.Range.Interval = 1;
    
                List<LogData> data = new List<LogData>();
             
                data.Add(new LogData(1990, 80));
                data.Add(new LogData(1991, 200));
                data.Add(new LogData(1992, 400));
                data.Add(new LogData(1993, 600));
                data.Add(new LogData(1994, 900));
                data.Add(new LogData(1995, 1400));
                data.Add(new LogData(1996, 2000));
                data.Add(new LogData(1997, 4000));
                data.Add(new LogData(1998, 6000));
                data.Add(new LogData(1999, 8000));
                data.Add(new LogData(2000, 9000));          
    
                //Binding DataSource to Chart
                this.Chart1.DataSource = data;
                this.Chart1.DataBind();
    
            }
        }
        
    }
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Data;
    using System.ComponentModel;
    using System.Web.Script.Serialization;
    [Serializable]
        public class LogData
        {
            public LogData(double xval, double yvalue1)
            {
                this.Xvalue = xval;
                this.YValue1 = yvalue1;
    
    
            }
            public double Xvalue
            {
                get;
                set;
            }
            public double YValue1
            {
                get;
                set;
            }
        }