2014-06-10 3 views
1

Lorsque nous exportons nos cartes en format PDF, nous obtenons ce qui ressemble à 2 pages dans un fichier PDF. Démonstration en direct de celui-ci here. Nous ne sommes pas sûrs de ce qui cause cela.Exportation de Highchart en PDF Résultats en 2 pages

Lorsque nous exportons nous modifions les propriétés de tableau comme ceci:

chartMainLoc.exportChart(
    { 
    type: 'application/pdf', 
    sourceHeight: this.chartHeight, 
    sourceWidth: this.chartWidth, 
    scale: 1 
    }, 
    { 
    title: { 
     text: '<span style="font-weight:bold">Labor Force, Employment and Unemployment for Pinellas County in June, 2013</span><br /><br /><span style="font-weight:bold;font-size:9pt">Labor Force Graph</span><br /><br /><span style="font-size:10px; font-weight:normal">The graph below shows the monthly not seasonally adjusted Labor Force, Employment and Unemployment data for Pinellas County in June, 2013.</span>' 
    }, 
    subtitle: { 
     text: 'Source: Labor Market Statistics, Local Area Unemployment Statistics Program and Online Advertised Job Data<br />Downloaded: 06/10/2014 4:20 PM' 
    }, 
    legend: { 
     y: -50 
    }, 
    chart: { 
     spacingLeft: 0, 
     spacingBottom: 10, 
     shadow: false, 
     height: chartMainLoc.chartHeight + 20 
    } 
    } 
) 

Répondre

1

Il est lié avec bug connu, signalé ici: https://github.com/highslide-software/highcharts.com/issues/1957

+0

D'accord. Le dernier changement était il y a un an. – wergeld

+0

Comment réparer cela maintenant si a été réparé il y a un an et fermé? – wergeld

+0

Eh bien, il devrait être corrigé dans la version 4.0.1, pouvez-vous répliquer votre démo en direct, alors je vais rouvrir ce ticket –

Questions connexes