When I am creating the graph with the highchart I intend to print the javascript variable inside the subtitle.
code JS:
for (var key2 in data5) {
if (data5.hasOwnProperty(key2)) {
items2 = items2.concat(data5[key2]);
}
nome2 = items2[0]
qtd2 = items2[1]
}
qtd3 = qtd2 - qtd1
qtd4 = qtd3 / 100
$('#container').highcharts({
chart: {
renderTo: 'container',
type: 'column',
options3d: {
enabled: true,
alpha: 0,
beta: 0,
depth: 20,
}
},
title: {
text: 'AVALIAÇÃO CONSUMOS LUVAS'
},
subtitle: {
text: '<strong>Notas:</strong> Estamos a comparar os meses de janeiro/fevereiro com o mês de junho (mês em que voltamos à "normalidade", em que cada colaborador efetuou registo/fez requisição. Não estamos a considerar os meses de março, abril e maio, por serem meses em que as luvas ficaram à descrição e nem todos os colaboradores efetuaram registo na folha consoante pedimos. O normal seria o junho ser idêntico a janeiro ou fevereiro. No entanto cada colaborador deve avaliar/avaliar-se mês a mês. De janeiro/fevereiro para junho o consumo aumentou em qtd3 luvas = qtd4 caixas.'
}
Within the subtitle I intend to echo the variable qtd3
and qtd4
but I'm not getting it. Can you help?