javascript - How do I force HighCharts to label every column? -


i have basic column chart, numbers each year. works fine, if make window small, swallows half years

enter image description here

there's plenty of room fit odd years in, how tell high charts that?

var allspending = [     [2002, 591856],     [2003, 839446],     [2004, 848463],     [2005, 1034755],     [2006, 1569442],     [2007, 1484477],     [2008, 2280282],     [2009, 3261702],     [2010, 4132972],     [2011, 5321516] ];  $(function () {     $('#container').highcharts({         chart: {             type: 'column'         },         legend: {             enabled: false         },          series: [{             name: 'dollars',             data: allspending         }]     }); }); 

i've played steps , staggering, want stagger when absolutely has to.

see yourself!

you can set tickinterval , min value.

 xaxis:{             min:2002,             tickinterval:1         }, 

http://jsfiddle.net/xfv4a/9/


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -