Welcome Guest Search | Active Topics |

Controlling the thickness of the bars in a Bar chart
Vamsi Munagala
#1 Posted : Thursday, December 1, 2011 11:48:56 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/1/2011(UTC)
Posts: 6

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello

I created a bar chart which is integrated into SharePoint.
The data and the graph displayed correctly, however the thickness of the bars in the graph is more than normal. It's very big. :)
Is there a way to control the thickness of the bars? I don't see any options related to it or may be I'm missing something.

Let me know if you got my question correctly


Thanks
Vamsi
Dragan
#2 Posted : Friday, December 2, 2011 12:42:08 PM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

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

Can you provide a little more info what do you mean with "thickness of the bars"? Do you mean the width of the bars?

You can control the width of the bars with "pointWidth" setting. By default it is set to 0.6.

series: [
{
type: 'bar',
pointWidth : 0.5,
data: [65.62, 75.54, 60.45, 34.73, 85.42, 55.9, 63.6, 55.1, 77.2],
}, ...

More about bar charts you can find here:

http://www.jqchart.com/documentation/userguide/default.aspx#&who=BarCharts
Best Regards,
Dragan Matek
jqChart Inc.
Vamsi Munagala
#3 Posted : Sunday, December 4, 2011 1:03:30 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/1/2011(UTC)
Posts: 6

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Thanks Dragan,
The 'pointWidth' series option helped me to control the bar sizes.

However the documentation is missing such options. It needs to be updated.
http://www.jqchart.com/d...t.aspx#&who=Options
Dragan
#4 Posted : Monday, December 5, 2011 3:03:18 PM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
I'm glad that this helped. We'll update the documentation.
Best Regards,
Dragan Matek
jqChart Inc.
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.101 seconds.