javascript - How to set the padding and placement if we have more than 16 data in the series -


so have 20 data in series , dont know how calculate placement , padding , make works. here jsfiddle link

fiddle

$(function () {     $('#container').highcharts({         chart: {             type: 'column'         },         title: {             text: 'efficiency optimization branch'         },         xaxis: {             categories: [                 'seattle hq',                 'san francisco',                 'tokyo'             ]         },         yaxis: [{             min: 0,             title: {                 text: 'employees'             }         }, {             title: {                 text: 'profit (millions)'             },             opposite: true         }],         legend: {             shadow: false         },         tooltip: {             shared: true         },         plotoptions: {             column: {                 grouping: false,                 shadow: false,                 borderwidth: 0             }         },         series: [{             name: 'employees',             color: 'rgba(165,170,217,1)',             data: [150, 73, 20],             pointpadding: 0.3,             pointplacement: -0.2         }, {             name: 'employees optimized',             color: 'rgba(126,86,134,.9)',             data: [140, 90, 40],             pointpadding: 0.4,             pointplacement: -0.2         }, {             name: 'profit',             color: 'rgba(248,161,63,1)',             data: [183.6, 178.8, 198.5],             pointpadding: 0.3,             pointplacement: 0.2,         }, {             name: 'profit optimized',             color: 'rgba(186,60,61,.9)',             data: [203.6, 198.8, 208.5],             pointpadding: 0.4,             pointplacement: 0.2,         },{             name: 'employees1',             color: 'rgba(125,110,217,1)',             data: [140, 43, 70],             pointpadding: 0.3,             pointplacement: -0.2         }, {             name: 'employees optimized1',             color: 'rgba(126,186,134,.9)',             data: [130, 40, 10],             pointpadding: 0.4,             pointplacement: -0.2         }, {             name: 'profit1',             color: 'rgba(148,161,163,1)',             data: [83.6, 148.8, 98.5],             pointpadding: 0.3,             pointplacement: 0.2,         }, {             name: 'profit optimized1',             color: 'rgba(186,50,67,.9)',             data: [213.6, 148.8, 208.5],             pointpadding: 0.4,             pointplacement: 0.2,         },{             name: 'employees2',             color: 'rgba(165,170,117,1)',             data: [170, 33, 30],             pointpadding: 0.3,             pointplacement: -0.2         }, {             name: 'employees optimized2',             color: 'rgba(146,86,114,.9)',             data: [120, 30, 60],             pointpadding: 0.4,             pointplacement: -0.2         }, {             name: 'profit2',             color: 'rgba(248,121,61,1)',             data: [123.6, 278.8, 128.5],             pointpadding: 0.3,             pointplacement: 0.2,         }, {             name: 'profit optimized2',             color: 'rgba(126,40,21,.9)',             data: [213.6, 298.8, 198.5],             pointpadding: 0.4,             pointplacement: 0.2,         },{             name: 'employees3',             color: 'rgba(164,120,117,1)',             data: [120, 93, 30],             pointpadding: 0.3,             pointplacement: -0.2         }, {             name: 'employees optimized3',             color: 'rgba(116,86,114,.9)',             data: [150, 80, 20],             pointpadding: 0.4,             pointplacement: -0.2         }, {             name: 'profit3',             color: 'rgba(148,191,163,1)',             data: [143.6, 158.8, 298.5],             pointpadding: 0.3,             pointplacement: 0.2,         }, {             name: 'profit optimized3',             color: 'rgba(146,160,161,.9)',             data: [243.6, 118.8, 218.5],             pointpadding: 0.4,             pointplacement: 0.2,         },{             name: 'employees4',             color: 'rgba(185,120,207,1)',             data: [190, 173, 120],             pointpadding: 0.3,             pointplacement: -0.2         }, {             name: 'employees optimized4',             color: 'rgba(156,186,124,.9)',             data: [110, 45, 183],             pointpadding: 0.4,             pointplacement: -0.2         }, {             name: 'profit4',             color: 'rgba(218,161,163,1)',             data: [143.6, 218.8, 238.5],             pointpadding: 0.3,             pointplacement: 0.2,         }, {             name: 'profit optimized4',             color: 'rgba(126,60,51,.9)',             data: [253.6, 118.8, 258.5],             pointpadding: 0.4,             pointplacement: 0.2,         }]     }); }); 

thanks help

here working fiddle

'http://jsfiddle.net/5znwjwek/1/' 

thanks


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -