While I have had success with creating a [Highcharts Box-and-Whisker plot](http://www.highcharts.com/demo/box-plot) by writing static values into my MVC 5 view page, now I am trying to do the same thing by populating the values using a JsonResult function in the controller.

The Highcharts website has a section on [custom preprocessing data using JSON](http://www.highcharts.com/docs/working-with-data/custom-preprocessing#3), but I have been so far unsuccessful using the method shown in that URL, only changing the chart type to 'boxplot' and defining parameters. An alert box shows that the data values are successfully read from the JsonResult function, but the chart appears without the data I expect to see.

I checked with Firebug and saw no jQuery errors when viewing the page in a browser.

Am I missing something obvious here? I am using MVC 5 C# in Visual Studio.

```
@section scripts
{
    <script src="https://code.highcharts.com/highcharts.js"></script>
    <script src="https://code.highcharts.com/highcharts-more.js"></script>
    <script>
        $(function () {

            var options = {
                chart: {
                    renderTo: 'container',
                    type: 'boxplot'                    
                },                
                series: [{}]
            };                       

            $.ajax({
                dataType: "json",
                type: "POST",
                url: "@Url.Action("GetChartData")",                
                cache: false,
                async: false,
                data: { _campus: "@ViewBag.SelectedCampus", 
                       _semester: "@ViewBag.SelectedSemester", 
                       _fy: "FY12" },
                success: function (data) {

                    options.series[0].data = data;
                    var chart = new Highcharts.Chart(options);
                    alert(data); // I see the correct array set in the alert box:
                                 // as written literally:   395,441,457,479,532
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    alert("oops: " + textStatus + ": " + jqXHR.responseText);
                }
            });
        });
    </script>
}

```

This is a screenshot of what it looks like:

[![Screenshot](https://i.stack.imgur.com/OJuLA.png)](https://i.stack.imgur.com/OJuLA.png)

In case it makes a difference, here is the JsonResult function:

```
public JsonResult GetChartData(string _campus, string _semester, string _fy)
        {
            IEnumerable<MathAimsScaleScore> query = db.MathAimsScaleScores
                .Where(m => m.Campus == _campus)
                .Where(m => m.Semester == _semester)
                .Where(m=>m.FY==_fy);

            var FyList = query.Select(m => Convert.ToDouble(m.ScaleScore));
            var jsonList = new double[5];

            for (int i = 0; i < 5; i++)
            {
                jsonList[i] = Statistics.FiveNumberSummary(FyList)[i];
            }

            return Json(jsonList.ToArray());
        }

```