It is currently Sun Oct 26, 2014 11:26 am Advanced search

Padding in area plot

Technical support, bug reports and more.

Padding in area plot

Postby prytnar » Mon Feb 20, 2012 5:27 pm

How can I remove "padding" on my plot chart ? See attachment, please

https://skitch.com/prytnar/8drk8/cloudv ... udvertical
prytnar
 
Posts: 3
Joined: Mon Feb 20, 2012 5:25 pm

Re: Padding in area plot

Postby Fusher » Mon Feb 20, 2012 6:04 pm

Try two ways:
- http://www.highcharts.com/ref/#xAxis--startOnTick setted to true. Also endOnTick.
- http://www.highcharts.com/ref/#xAxis--maxPadding to negative values. Also minPadding.
Paweł Fus
Highcharts support team
Fusher
 
Posts: 7388
Joined: Mon Jan 30, 2012 12:16 pm

Re: Padding in area plot

Postby prytnar » Mon Feb 20, 2012 7:04 pm

doesn't help , my xaxis setting is

xAxis: {
categories: [],
tickmarkPlacement: 'on',
maxPadding: -0.5,
minPadding: -0.5,
title: {
enabled: false
}
}

(categories are empty at beginning and dynamically added later)
prytnar
 
Posts: 3
Joined: Mon Feb 20, 2012 5:25 pm

Re: Padding in area plot

Postby Fusher » Mon Feb 20, 2012 7:12 pm

Would you like to paste your code example to jsfiddle? I can just guess a few more times, and that's .. not the easiest way to resolve this.
Paweł Fus
Highcharts support team
Fusher
 
Posts: 7388
Joined: Mon Jan 30, 2012 12:16 pm

Re: Padding in area plot

Postby prytnar » Tue Feb 21, 2012 11:56 am

prytnar
 
Posts: 3
Joined: Mon Feb 20, 2012 5:25 pm

Re: Padding in area plot

Postby hfrntt » Fri Feb 24, 2012 12:26 am

If you're using categorized x axis highcharts automatically center the chart (it's useful in column charts), see: http://jsfiddle.net/nxMgG/4/
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am


Return to Highcharts Usage

Who is online

Users browsing this forum: Bing [Bot] and 7 guests