-
23 Jul 2012 5:18 AM #1
Answered: How to draw column charts without any space between columns
Answered: How to draw column charts without any space between columns
Hello,
I ave created a column chart, but my requirement is to show the columns grouped together without any space in between. How can we achieve that?
below is the current chart i am getting
chart.png
and below is my chart series and axes code
axes: [
{
type: 'Numeric',
position: 'left',
fields: ['data1', 'data2', 'data3'],
minimum: 0,
},
{
type: 'Category',
position: 'bottom',
fields: ['timeframe'],
title: ''
}
],
series: [
{
type: 'column',
axis: 'left',
xField: 'timeframe',
yField: ['data1', 'data2', 'data3']
}
]
-
Best Answer Posted by Naga
It's working fine for me... i tried this code.
Attachment 37449Code:series: [{ type: 'column', xField: 'name', // gutter : 0.5, groupGutter : 1, yField: ['data1', 'data2', 'data3'], // stacked: 'true', axis: 'bottom', highlight: true, showInLegend: true }]
-
24 Jul 2012 12:33 AM #2
You can use gutter option to reduce the space between the columns......
you can refer to this link
http://docs.sencha.com/touch-charts/...Bar-cfg-gutter
-
24 Jul 2012 10:02 PM #3
Can you give me an example for the same
Can you give me an example for the same
I have tried using gutter in three ways but it didnt work
series: [
{
type: 'column',
axis: 'left',
highlight: true,
gutter : 1,
config : {
gutter : 1
},
getGutters:function(){
return[1,1];
}
}
]
so am i doing something wrong ?
-
24 Jul 2012 11:21 PM #4
It's working fine for me... i tried this code.
Untitled.jpgCode:series: [{ type: 'column', xField: 'name', // gutter : 0.5, groupGutter : 1, yField: ['data1', 'data2', 'data3'], // stacked: 'true', axis: 'bottom', highlight: true, showInLegend: true }]
-
25 Jul 2012 2:26 AM #5
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote