-
8 May 2012 12:39 AM #1
Answered: add space on x-axis in graph
Answered: add space on x-axis in graph
is it possible to add space both side on x axis to display full marker?
test.png
-
Best Answer Posted by shydreamz
try using getGutters function in series
this will give a kind on displace label of x-axis with 10.Code:series: [{ type: 'line', axis: 'left', xField: 'name', yField: 'iphone', title: 'iPhone', getGutters:function(){ return[10,0]; } }]
-
9 May 2012 11:25 PM #2
you can add
in series config to get space from axis.Code:xPadding: 10,
-
10 May 2012 3:21 AM #3
xPadding not working in line chart but it's work in column chart.
is there any other way ?
-
25 May 2012 8:33 AM #4
Hi, I just ran into this thread and wonder if you found a workaround...
I second your desire to have a space between the y axis and the line. I don't see any reason why xPadding is not available for a line series.
-
12 Jun 2012 2:50 AM #5
try using getGutters function in series
this will give a kind on displace label of x-axis with 10.Code:series: [{ type: 'line', axis: 'left', xField: 'name', yField: 'iphone', title: 'iPhone', getGutters:function(){ return[10,0]; } }]
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote