javascript - Highcharts columnchart: How to separate overlapping columns -


i using highcharts plot data points in column chart. x-axis datetimestamped , y-axis simple numeric frequency.

two of datapoints overlapping. want them shown separate columns on chart. want x-axis show month 'year.

my javascript below:

$(function () {     $('#container').highcharts({         chart: {             type: 'column'         },         xaxis: {     type:'datetime',             datetimelabelformats: {                         month: '%b \'%y'             },               tickinterval: 24 * 3600 * 1000 * 30     },         yaxis: {             min: 0,             title: {                 text: 'frequency'             }         },         plotoptions: {             column: {             pointpadding: 0.2,             pointwidth: 10             }         },         series: [{"name":"warning","data":[{"x":1367391600000,"y":1}]},{"name":"pass","data":[{"x":1367391600000,"y":2}]},{"name":"fail","data":[{"x":1370070000000,"y":1}]}]     }); }); 

issue:

my first , second datapoints overlapping columns. if 1 shown, other gets hidden. can me this.

http://jsfiddle.net/x4ujd/

you should set pointrange parameter, in example: http://jsfiddle.net/sbochan/x4ujd/1/

http://api.highcharts.com/highcharts#plotoptions.column.pointrange


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -