Grouped Categories with DotNet.Highcharts

321 views Asked by At

I try to build a grouped categories bar plot with DotNet.Highcharts similar to this example: http://www.highcharts.com/plugin-registry/single/11/Grouped-Categories

I know how to set my own categories:

String[] myCategories = new String[] { "Category1", "Category2" };

DotNet.Highcharts.Highcharts chart = new DotNet.Highcharts.Highcharts("chart")
.SetXAxis(new XAxis
{
   Categories = myCategories
})

However I couldn't manage to initialize this chart with DotNet.Highcharts and subcategories which would require code similar to this example

        categories: [{
            name: "Fruit",
            categories: ["Apple", "Banana", "Orange"]
        }, {
            name: "Vegetable",
            categories: ["Carrot", "Potato", "Tomato"]
        }, {
            name: "Fish",
            categories: ["Cod", "Salmon", "Tuna"]
        }]

Any ideas how to get it done?

Thanks!

0

There are 0 answers