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

<!DOCTYPE html>
<html lang="en-us">
<head>
    <meta charset="utf-8">
    <title>Chartfor ASP.NET MVC - Line Log</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",
                        Title = new List<Title>
                        {
                            new Title()
                            {
                                Left = "center",
                                Text = "Log Lines"
                            }
                        },
                        Tooltip = new ToolTip
                        {
                            Trigger = TriggerType.Item,
                            Formatter = "{a} <br/>{b} : {c}"
                        },
                        Legend = new Legend
                        {
                            Left = "left",
                            Data = new object[2] { "log of 2", "log of 3" }
                        },
                        XAxis = new List<Axis>()
                        {
                            new CategoryAxis()
                            {
                                Name = "x",
                                Data = new List<int> {1,2,3,4,5,6,7,8,9},
                                SplitLine = new SplitLine()
                                {
                                    Show = false
                                }
                            }
                        },
                        YAxis = new List<Axis>()
                        {
                            new LogAxis()
                            {
                               Name = "y",
                               Type = AxisType.Log
                            }
                        },
                        Grid = new List<Grid>()
                        {
                            new Grid()
                            {
                                Left = "3%",
                                Right = "4%",
                                Bottom = "3%",
                                ContainLabel = true
                            }
                        },
                        Series = new List<object>()
                        {
                            new Line()
                            {
                                Name = "log of 3",
                                Data = new List<int> { 1, 3, 9, 27, 81, 247, 741, 2223, 6669}
                            },
                            new Line()
                            {
                                Name = "log of 2",
                                Data = new List<int> { 1, 2, 4, 8, 16, 32, 64, 128, 256}
                            },
                            new Line()
                            {
                                Name = "log of 1/2",
                                Data = new List<double> { 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625, 0.0078125, 0.00390625, 0.001953125 }
                            }
                        }
                     }
            , "Chart")
        )

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

using System.Web.Mvc;

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