Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $.getJSON('./tarefasaad52', function (data) {
- const json1 = data.json[0];
- const json2 = data.json1[0];
- $('#container').highcharts({
- chart: {
- renderTo: 'container',
- type: 'column'
- },
- title: {
- text: 'Mês Atual'
- },
- xAxis: {
- categories: ['1', '2', '3', '4', '5'],
- },
- yAxis: {
- min: 0,
- title: {
- text: 'Percentagem'
- }
- },
- tooltip: {
- pointFormat: '<span></span><b>Percentagem por Turno:{point.y}</b> %<br/><span></span><b>Dia do Mês:{point.x}</b>',
- shared: true
- },
- plotOptions: {
- column: {
- stacking: 'percentagem'
- }
- },
- series: [{
- keys: ['y', 'x'],
- name: 'Tarefas R.T.',
- data: json2
- }]
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement