HighCharts: Basic line chart doesn't show first label on the X-axis -


below code of graph , problem doesn't show first label on x-axis. have tried options showfirstlabel , startontick set true. still not showing.

  var my_chart = {         chart: {             renderto: 'divsigningraph',            margintop: 5,             fontfamily: 'arial,helvetica,sans-serif',             zoomtype: 'xy'         },         credits: {             enabled: false         },         title: {             style: {                 display: 'none'             }         },          legend: {         enabled: false         },         exporting: {             enabled: false         },         plotoptions: {             series: {                 animation: {                     duration: 3000                 }             }         },         series: [             {                 type: 'line',                 name: 'your progress',                 color: '#27aae2',                 data: [7, 0, 1, 19, 50, 5, 0, 0, 0, 2, 2, 6, 2, 0, 1, 1, 0, 0, 9, 0, 0, 7, 9, 2, 9, 0, 0, 0, 0, 0, 1]             }            ],         xaxis: {         startontick:true,         showfirstlabel: true,         endontick : true,         showlastlabel:true,             categories: ['jun 24', 'jun 25', 'jun 26', 'jun 27', 'jun 28', 'jun 29', 'jun 30', 'jul  1', 'jul  2', 'jul  3', 'jul  4', 'jul  5', 'jul  6', 'jul  7', 'jul  8', 'jul  9', 'jul 10', 'jul 11', 'jul 12', 'jul 13', 'jul 14', 'jul 15', 'jul 16', 'jul 17', 'jul 18', 'jul 19', 'jul 20', 'jul 21', 'jul 22', 'jul 23', 'jul 24'],             labels: {                 align: 'right',                 rotation: -90,                 step: 30,                                      style: {                     font: 'normal 9px arial'                 }             }         },         yaxis: {         title: {             text: null         },         labels: {             enabled: false         }     }     };     new highcharts.chart(my_chart); 

enter image description here

any idea?

thank you.

for me works properly: jsfiddle.net/fhhak/2/

mae sure have latest version of highcharts.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -