Welcome Guest Search | Active Topics |

Column Chart groupPadding
panda
#1 Posted : Wednesday, December 05, 2012 6:06:54 AM(UTC)
Rank: Member

Groups: Registered
Joined: 12/5/2012(UTC)
Posts: 14

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Hi,
I wanted column chart to look like this.
Where there are three columns representing gold,silver and bronze medals



Is there a way to adjust groupPadding betweenthe columns in column chart ?
If not ,is there any hack ?
Ivan
#2 Posted : Wednesday, December 05, 2012 7:35:13 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 use this code:

Code:
  $(document).ready(function () {
        $('#jqChart').jqChart({
            axes: [
                    {
                        location: 'left',
                        type: 'linear',
                        title: 'Medal Count'
                    }
                  ],
            series: [
                        {
                            title: 'Gold',
                            type: 'rangeColumn',
                            fillStyle: '#ECAA53',
                            pointWidth: 0.5,
                            data: [['Olimpic 2008', 0, 20], ['Olimpic 2012', 0, 20]]
                        },
                        {
                            title: 'Silver',
                            type: 'rangeColumn',
                            fillStyle: '#CBCDA2',
                            pointWidth: 0.4,
                            data: [['Olimpic 2008', 0, 10], ['Olimpic 2012', 0, 10]]
                        },
                        {
                            title: 'Bronze',
                            type: 'rangeColumn',
                            fillStyle: '#797C46',
                            pointWidth: 0.3,
                            data: [['Olimpic 2008', 0, 5], ['Olimpic 2012', 0, 5]]
                        }
                    ]
        });
    });
Best,
Ivan Petrov
jqChart Inc.
panda
#3 Posted : Wednesday, December 05, 2012 7:48:42 AM(UTC)
Rank: Member

Groups: Registered
Joined: 12/5/2012(UTC)
Posts: 14

Thanks: 1 times
Was thanked: 0 time(s) in 0 post(s)
Thank you..
Users browsing this topic
Guest
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.919 seconds.