Welcome Guest Search | Active Topics |

Label on Stacked Chart
kazi.hassan
#1 Posted : Tuesday, March 18, 2014 12:12:58 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/18/2014(UTC)
Posts: 3

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

We would like to add a label on top of each stack bar say, Revenue, Expense, Margin for each group. We are using http://www.jqchart.com/j...s/Stacked100ColumnChart

Please assist.

// Kazi Hassan
Ivan
#2 Posted : Tuesday, March 18, 2014 7:47:56 AM(UTC)
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)
Hi,

Currently this functionality is not supported. You can probably set these texts as axis labels.
Best,
Ivan Petrov
jqChart Inc.
kazi.hassan
#3 Posted : Tuesday, March 18, 2014 2:30:45 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/18/2014(UTC)
Posts: 3

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi Ivan,

Thanks for your reply. The issue is we already have one axis label for the group, is that possible to have two axis label against the same axis?

// Kazi Hassan
Ivan
#4 Posted : Tuesday, March 18, 2014 2:48:41 PM(UTC)
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)
Sure, here is an example how you can add multiple category axis:
http://www.jqchart.com/docs/jquery/#!/guide/MultipleAxes
Best,
Ivan Petrov
jqChart Inc.
1 user thanked Ivan for this useful post.
kazi.hassan on 3/18/2014(UTC)
kazi.hassan
#5 Posted : Tuesday, March 18, 2014 8:14:56 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/18/2014(UTC)
Posts: 3

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi Ivan,

We are trying to implement this within stacked column chart.
Where we found it's not working, do you have any example for using two axis in the bottom for grouped stacked chart?

// Kazi Hassan
Ivan
#6 Posted : Wednesday, March 19, 2014 7:51:24 AM(UTC)
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.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.098 seconds.