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
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.
you can set tickinterval , min value.
xaxis:{ min:2002, tickinterval:1 },
Comments
Post a Comment