I am trying to export multiple highcharts to a PDF with a title in the top center of the PDF.
I am able to export my charts with the title in the top left of the PDF. How do I style my text so that it is in the center of the PDF?
Here is my code: https://jsfiddle.net/jethanger/1ey0fox6/2/
I have tried to increase the text x position to center the text but that has not worked. the Text still prints at the left edge of the PDF.
 title= 'Daily Log  ';
  txt = '<text x= "' + 5000 + '" y = "' + (top) + '"><tspan x="0" dy="1.2em">'  + title +'</br>' + ' at '  + '</tspan></text>';
  if(i==0){
  top +=  100
  svgArr.push(txt);
  }