我尝试使用类似于此示例的DotNet.Highcharts构建分组类别条形图:http://www.highcharts.com/plugin-registry/single/11/Grouped-Categories
我知道如何设置自己的类别:
String[] myCategories = new String[] { "Category1", "Category2" };
DotNet.Highcharts.Highcharts chart = new DotNet.Highcharts.Highcharts("chart")
.SetXAxis(new XAxis
{
Categories = myCategories
})
但是我无法使用DotNet.Highcharts和子类别来初始化此图表,这需要与此示例类似的代码
categories: [{
name: "Fruit",
categories: ["Apple", "Banana", "Orange"]
}, {
name: "Vegetable",
categories: ["Carrot", "Potato", "Tomato"]
}, {
name: "Fish",
categories: ["Cod", "Salmon", "Tuna"]
}]
有任何想法如何完成它?
谢谢!