SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function () {
  2. $.getJSON('./tarefasaad52', function (data) {  
  3.  
  4.      const json1 = data.json[0];
  5.      const json2 = data.json1[0];
  6.  
  7.     $('#container').highcharts({
  8.         chart: {
  9.             renderTo: 'container',
  10.             type: 'column'
  11.         },
  12.         title: {
  13.             text: 'Mês Atual'
  14.         },
  15.         xAxis: {
  16.             categories: ['1', '2', '3', '4', '5'],
  17.         },
  18.         yAxis: {
  19.             min: 0,
  20.             title: {
  21.                 text: 'Percentagem'
  22.             }
  23.         },
  24.     tooltip: {
  25.         pointFormat: '<span></span><b>Percentagem por Turno:{point.y}</b> %<br/><span></span><b>Dia do Mês:{point.x}</b>',
  26.         shared: true
  27.     },
  28.     plotOptions: {
  29.         column: {
  30.             stacking: 'percentagem'
  31.         }
  32.     },
  33.         series: [{
  34.  
  35.             keys: ['y',  'x'],
  36.             name: 'Tarefas R.T.',
  37.             data: json2
  38.         }]
  39.  
  40.     });
  41.  
  42. });
  43. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top