@using LearnMvcClient.Models
@model IEnumerable<FlexChartData.Stock>

<h1>
    @Html.Raw(Resources.C1FlexChart.CandlestickCharts_Title)
</h1>

<p>
    @Html.Raw(Resources.C1FlexChart.CandlestickCharts_Text1)
</p>
<p>
    @Html.Raw(Resources.C1FlexChart.CandlestickCharts_Text2)
</p>
<p>
    @Html.Raw(Resources.C1FlexChart.CandlestickCharts_Text3)
</p>

@(Html.C1().FlexChart<FlexChartData.Stock>().Id("theChart")
    .Bind("Date", Model)
    .ChartType(C1.Web.Mvc.Chart.ChartType.Candlestick)
    .Series(sb=>sb.Add().Binding("High,Low,Open,Close").Name("Alphabet Inc"))
    .Legend(C1.Web.Mvc.Chart.Position.None)
)