Toggle navigation Highcharts
  • About Us
    • About Us
    • Job Openings
    • Contact Us
    • News
    • Resellers
  • Home
  • Products
    • Highcharts
    • Highstock
    • Highmaps
    • Mobile
    • Highcharts Cloud
    • Highcharts Editor
    • Wrappers
    • Plugins
  • Demo
    • Highcharts demos
    • Highstock demos
    • Highmaps demo
  • Docs
    • General Documentation
    • API Reference
    • Changelog
    • Roadmap
  • Support
    • Support
    • Download
  • Blog
  • Community
    • Project Showcase
    • Chart Code Showcase
    • Contribute
  • Buy
  • About Us
    • About Us
    • Job Openings
    • Contact Us
    • News
    • Resellers
Highstock .NET 
  • Highcharts .NET
  • Highstock .NET
Demos 
  • Demos
  • API
  • Docs
  • See on NuGet
  • Download 
  • Demo
  • API
  • Docs
  • See on NuGet
  • Download 
Highstock .NET
 Highcharts  Highstock
  • GENERAL
    • Single line series
    • Two panes, candlestick and volume
    • Compare multiple series
    • 52,000 points with data grouping
    • 1,7 million points with async loading
    • Intraday Area
    • Intraday with breaks
    • Intraday Candlestick
    • Flags marking events
    • Dynamically Updated Data
  • CHART TYPES
    • Line with markers and shadow
    • Spline
    • Step line
    • Area
    • Area spline
    • Area range
    • Area spline range
    • Candlestick
    • OHLC
    • Column
    • Column range
    • Point markers only
  • VARIOUS FEATURES
    • Plot lines on Y axis
    • Plot bands on Y axis
    • Reversed Y axis
    • Styled scrollbar
    • Disabled scrollbar
    • Disabled navigator
  • FLAGS
    • Flags placement
    • Flags shapes and colors
list

Controller Code

using Highsoft.Web.Mvc.Stocks;
using MVC_Demo.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;

namespace MVC_Demo.Areas.Highstock.Controllers.Shared
{
    public partial class SharedController : Controller
    {
        public ActionResult IntradayCandlestick()
        {
            List<CandleStickSeriesData> intradayData = new List<CandleStickSeriesData>();
            List<LineSeriesData> navigatorData = new List<LineSeriesData>();

            foreach (Intraday data in GetList_Intradays())
            {
                intradayData.Add(new CandleStickSeriesData
                {
                    Open = Convert.ToDouble(data.Open),
                    Close = Convert.ToDouble(data.Close),
                    High = Convert.ToDouble(data.High),
                    Low = Convert.ToDouble(data.Low),
                    X = Convert.ToDouble(data.Date)
                });
            }
            
            foreach (var item in intradayData)
                navigatorData.Add(new LineSeriesData() { Y = item.Close, X = item.X });

            ViewBag.IntradayData = intradayData.OrderBy(o => o.X).ToList();
            ViewBag.NavigatorData = navigatorData.OrderBy(o => o.X).ToList();
            return View(ViewBag);
        }

    }
}

Controller Code

@using Highsoft.Web.Mvc.Stocks
@using Highsoft.Web.Mvc.Stocks.Rendering

<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

@{ var chartOptions =
              new Highstock
              {
                  Title = new Title
                  {
                      Text = "AAPL stock price by minute"
                  },
                  Subtitle = new Subtitle
                  {
                      Text = "Using ordinal X axis"
                  },
                  Navigator = new Navigator()
                  {
                      Series = new LineSeries()
                      {
                          Data = ViewBag.NavigatorData as List<LineSeriesData>
                      }
                  },
                  RangeSelector = new RangeSelector()
                  {
                      Buttons = new List<RangeSelectorButton>() { new RangeSelectorButton { Type = "minute", Count = 60, Text = "1h" }, new RangeSelectorButton { Type = "day", Count = 1, Text = "1d" }, new RangeSelectorButton { Type = "all", Count = 1, Text = "All" } },
                      InputEnabled = false,
                      Selected = 1
                  },
                  Series = new List<Series>
                  {
        new CandleStickSeries
        {
            Data = ViewBag.IntradayData as List<CandleStickSeriesData>,

            Name = "AAPL",
            Tooltip = new CandleStickSeriesTooltip
            {
                ValueDecimals = 2
            },
            TurboThreshold = 10000
        }
                                  }
              };

    chartOptions.ID = "chart";
    var renderer = new HighstockRenderer(chartOptions);
}

@Html.Raw(renderer.RenderHtml())
© 2025 All rights reserved.