Chart Data

Performance !!!

Bar and Column Charts

Line and Area Charts

Pie Charts

Scatter and Bubble Charts

Radar and Polar Charts

Financial Charts

Gantt Charts

Combinational Charts

Dynamic Charts

Working with Chart Axes

Chart Features

Customizing Chart

Client-Side Events


The spline area chart can be plotted on a linear, date time or category x-axis (x-values are numeric, dates or categories (strings)).

In this example the spline area chart in plotted on a category axis.

For detailed implementation, please take a look at the Aspx, Razor and Controller code tabs.
 
<%@ Page  Language="C#"  Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="JQChart.Web.Mvc" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>    
    <link rel="stylesheet" type="text/css" href="~/Content/jquery.jqChart.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/jquery.jqRangeSlider.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/themes/le-frog/jquery-ui-1.8.20.css" />
    <script src="<%: Url.Content("~/Scripts/jquery-1.5.2.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.mousewheel.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.jqChart.min.js") %>" type="text/javascript"></script>    
    <script src="<%: Url.Content("~/Scripts/jquery.jqRangeSlider.min.js") %>" type="text/javascript"></script>
    <!--[if IE]><script lang="javascript" type="text/javascript" src="<%: Url.Content("~/Scripts/excanvas.js") %>"></script><![endif]-->
    <script lang="javascript" type="text/javascript">
    </script>
</head>
<body>
    <div>
        <%= Html.JQChart()
                .Chart()
                .ID("jqChart")
                .Width(500)
                .Height(300)
                .Title("Spline Area Chart")
                .Animation(TimeSpan.FromSeconds(1))
                .Series(series =>
                    {
                        series.SplineArea().XValues(new string[] { "A", "B", "C", "D", "E", "F", "G" })
                                           .YValues(new double[] { 56, 30, 62, 65, 40, 36, 70 });

                        series.SplineArea().YValues(new double[] { 46, 25, 48, 35, 32, 30, 40 });

                        series.SplineArea().YValues(new double[] { 26, 20, 38, 32, 22, 24, 20 });
                    }
                )
                .Render()%>
    </div>
</body>
</html>

                                        
 

@using JQChart.Web.Mvc

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>    
    <link rel="stylesheet" type="text/css" href="~/Content/jquery.jqChart.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/jquery.jqRangeSlider.css" />
    <link rel="stylesheet" type="text/css" href="~/Content/themes/le-frog/jquery-ui-1.8.20.css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.mousewheel.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.jqChart.min.js")" type="text/javascript"></script>    
    <script src="@Url.Content("~/Scripts/jquery.jqRangeSlider.min.js")" type="text/javascript"></script>
    <!--[if IE]><script lang="javascript" type="text/javascript" src="@Url.Content("~/Scripts/excanvas.js")"></script><![endif]-->
    <script lang="javascript" type="text/javascript">
    </script>
</head>
<body>
    <div>
          @(Html.JQChart()
                .Chart()
                .ID("jqChart")
                .Width(500)
                .Height(300)
                .Title("Spline Area Chart")
                .Animation(TimeSpan.FromSeconds(1))
                .Series(series =>
                    {
                        series.SplineArea().XValues(new string[] { "A", "B", "C", "D", "E", "F", "G" })
                                           .YValues(new double[] { 56, 30, 62, 65, 40, 36, 70 });

                        series.SplineArea().YValues(new double[] { 46, 25, 48, 35, 32, 30, 40 });

                        series.SplineArea().YValues(new double[] { 26, 20, 38, 32, 22, 24, 20 });
                    }
                )
                .Render() 
          )
    </div>
</body>
</html>

                                        
 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SamplesBrowser.Models
{
    public class EmptyChartModel
    { 
    }
}
                                        
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SamplesBrowser.Models;

namespace SamplesBrowser.Controllers
{
    public class ChartController : Controller
    {

        public ActionResult SplineAreaChart()
        {
            return View();
        }

    }
}