Rank: Administration
Groups: Administrators, Moderator, Registered Joined: 11/5/2012(UTC) Posts: 131
Thanks: 0 times Was thanked: 15 time(s) in 15 post(s)
|
You can try this one: Code: <%= Html.JQChart() .Chart() .ID("jqChart") .Width(500) .Height(300) .Axes(axis => { axis.CategoryAxis(Location.Bottom) .Categories(new string[] { "Cat 1", "Cat 2", "Cat 3", "Cat 4", "Cat 5", "Cat 6" }); axis.CategoryAxis(Location.Bottom) .Categories(new string[] { "Label 1", "Label 2", "Label 3", "Label 4", "Label 5", "Label 6" }); }
) .Series(series => { series.StackedColumn() .StackedGroupName("Group 1") .YValues(new double[] { 70, 40, 85, 50, 25, 40 }); series.StackedColumn() .StackedGroupName("Group 1") .YValues(new double[] { 70, 40, 85, 50, 25, 40 });
series.StackedColumn() .StackedGroupName("Group 2") .YValues(new double[] { 70, 40, 85, 50, 25, 40 });
series.StackedColumn() .StackedGroupName("Group 2") .YValues(new double[] { 70, 40, 85, 50, 25, 40 }); } ) .Render()%> Best, Ivan Petrov jqChart Inc.
|