@using Trirand.Web.Mvc
@using Trirand.Web.Mvc.Chart;
@using Trirand.Web.Mvc.Chart.ChartAxis;
@using Trirand.Web.Mvc.Chart.Series;
@using Trirand.Web.Mvc.Chart.ChartFeature;
@using Trirand.Web.Mvc.Chart.Style;

<!DOCTYPE html>
<html lang="en-us">
<head>
    <meta charset="utf-8">
    <title>Chartfor ASP.NET MVC - Area - Stacked Area</title>
    <script type="text/javascript" src="~/Scripts/trirand/chart/corechart.min.js"></script>
</head>
<body>
    <div>
        <!--
        The Html.Trirand().CoreChart() helper has two parameters
            - the model of the chart -- all chart properties, data and settings
            - the ID of the chart -- can be used for client-side manipulation
        In this example we are using hardcoded model in the View, but you can contruct the model in
        the controller based on runtime criteria and database data and pass the model
        to the View using ViewData
        -->
        @(Html.Trirand().CoreChart(
                     new CoreChart
                     {
                        Width = "900px",
                        Tooltip = new ToolTip
                        {
                            Trigger = TriggerType.Axis
                        },
                        Legend = new Legend
                        {
                            Data = new List<string> { "Mail", "Affiliate", "Video", "Direct", "Search" }
                        },
                        Toolbox = new ToolBox
                        {
                            Show = true,
                            Feature = new Feature
                            {
                                Mark = new Mark { Show = true },
                                DataView = new DataView { Show = true, ReadOnly = false },
                                MagicType = new MagicType { Show = true, Type = new List<object> { "line", "bar", "stack", "tiled" } },
                                Restore = new Restore { Show = true },
                                SaveAsImage = new FeatureImage { Show = true }
                            }

                        },
                        Calculable = true,
                        XAxis = new List<Axis>()
                        {
                            new CategoryAxis()
                            {
                                BoundaryGap = false,
                                Data = new List<string> { "Monday "," Tuesday "," Wednesday "," Thursday "," Friday "," Saturday "," Sunday" }
                            }
                        },
                        YAxis = new List<Axis>()
                        {
                            new ValueAxis()
                            {
                            }
                        },
                        Series = new List<object>()
                        {
                            new Line()
                            {
                                Name = "Mail",
                                Smooth = true,
                                Stack = "one",
                                ItemStyle = new ItemStyle { Normal = new Normal { AreaStyle = new AreaStyle { Type = AreaStyleType.Default } }},
                                Data = new List<int> { 120, 132, 101, 134, 90, 230, 210 }
                            },
                            new Line()
                            {
                                Name = "Affiliate",
                                Smooth = true,
                                Stack = "one",
                                ItemStyle = new ItemStyle { Normal = new Normal { AreaStyle = new AreaStyle { Type = AreaStyleType.Default } }},
                                Data = new List<int> { 220, 182, 191, 234, 290, 330, 310 }
                            },
                            new Line()
                            {
                                Name = "Video",
                                Smooth = true,
                                Stack = "one",
                                ItemStyle = new ItemStyle { Normal = new Normal { AreaStyle = new AreaStyle { Type = AreaStyleType.Default } }},
                                Data = new List<int> { 150, 232, 201, 154, 190, 330, 410 }
                            },
                            new Line()
                            {
                                Name = "Direct",
                                Smooth = true,
                                Stack = "one",
                                ItemStyle = new ItemStyle { Normal = new Normal { AreaStyle = new AreaStyle { Type = AreaStyleType.Default } }},
                                Data = new List<int> { 320, 332, 301, 334, 390, 330, 320 }
                            },
                            new Line()
                            {
                                Name = "Search",
                                Smooth = true,
                                Stack = "one",
                                ItemStyle = new ItemStyle { Normal = new Normal { AreaStyle = new AreaStyle { Type = AreaStyleType.Default } }},
                                Data = new List<int> { 820, 932, 901, 934, 1290, 1330, 1320 }
                            }

                        }
                     }
            , "Chart")
        )

        <br />
        <div>
            
        </div>
    </div>
</body>
</html>

using System.Web.Mvc;

namespace CoreDemo.Controllers.Chart
{
    public partial class ChartController : Controller
    {
        public ActionResult StackedArea()
        {
            return View("");
        }
    }
}