@using FlexChartAnalytics.Models
@using C1.Web.Mvc.Chart

<div>
    <div class="copy">
        <h3>
            FlexChart YFunctionSeries
        </h3>
        <p>
            This view shows Y Function Series in FlexChart.
        </p>
    </div>
    <div>
        <script type="text/javascript">
            function yFunc(value) {
                return Math.sin(4 * value) * Math.cos(3 * value);
            }
        </script>
        @(Html.C1().FlexChart().Legend(Position.Right)
            .Series(ses => {
                ses.AddYFunctionSeries("YFunctionSeries").Min(-10).Max(10).SampleCount(300).Func("yFunc");
            }))
    </div>
</div>