@Html.Highcharts4Net().BarChart(settings =>
{
settings.SetTitle(s => { s.Text = "Column chart with negative values"; });
settings.AddXAxis(s =>
{
s.Categories = new[] { "Apples", "Oranges", "Pears", "Grapes", "Bananas" };
});
settings.SetCredits(s => { s.Enabled = false; });
settings.AddSeries(s =>
{
s.Name = "John";
s.Data = new Data(new HighchartsDataPoint?[] { 5, 3, 4, 7, 2 });
});
settings.AddSeries(s =>
{
s.Name = "Jane";
s.Data = new Data(new HighchartsDataPoint?[] { 2, -2, -3, 2, 1 });
});
settings.AddSeries(s =>
{
s.Name = "Joe";
s.Data = new Data(new HighchartsDataPoint?[] { 3, 4, 4, -2, 5 });
});
}).Render()