好吧,我有这个问题与一个条形图使用Highchart库,我试图导出它,它的工作完全罚款PNG,JPEG。但当我试图导出为PDF格式,它有一些字体的问题,即使与“默认”Arial.。最初我是使用巴洛作为我的主要字体,但它做同样的问题。我使用离线导出。
Exporting as PDF
Exporting as JPEG
"lang": {
"contextButtonTitle": "Opciones",
"viewFullscreen": "Ver en pantalla completa",
"exitFullScreen": "Salir de pantalla completa",
"printChart": "Imprimir",
"downloadJPEG": "Descargar imagen JPEG",
"downloadPDF": "Descargar PDF",
"downloadPNG": "Descargar imagen PNG",
"downloadSVG": "Descargar imagen SVG",
"thousandsSep": ","
},
"chart": {
"backgroundColor": "#3D4553"
},
"title": {
"visible": true,
"template": "date_range",
"templateConfig": {
"originalDateFormat": "Y-MM-DD",
"originalTimeFormat": "hh:mm:ss",
"dateFormat": "DD-MM-Y",
"timeFormat": "hh:mm a",
"dateProperty": "fecha_creacion",
"timeProperty": "hora_creacion"
},
"style": {
"color": "#FFFFFF",
"fontSize": "14px",
"fontFamily": "Arial",
"fontWeight": "bold"
},
"verticalAlign": "top",
"align": "center",
"floating": false
},
"subtitle": {
"style": {
"color": "#FFFFFF",
"fontFamily": "Arial"
}
},
"tooltip": {
"backgroundColor": "#1d222b",
"borderColor": "#1d222b",
"borderWidth": 1,
"borderRadius": 0,
"style": {
"color": "#FFFFFF"
}
},
"xAxis": [{
"type": "category",
"labels": {
"style": {
"color": "white",
"fontFamily": "Arial"
}
},
"title": {
"style": {
"color": "white",
"fontFamily": "Arial"
}
}
}],
"yAxis": {
"title": {
"text": "Reportes",
"style": {
"color": "white"
}
},
"labels": {
"style": {
"color": "white"
},
"format": "{value:,.0f}"
},
"gridLineColor": "#43b5e5",
"gridLineWidth": 0
},
"legend": {
"enabled": false
},
"exporting": {
"enabled": true
},
"noData": {
"style": {
"color": "white"
}
}
我最好的问候,希望有人能帮助我。谢谢
1条答案
按热度按时间pbgvytdp1#
在某个时候,我得到了它的工作,它似乎是一个导出问题的大小和长度的文本的名称的,我试图显示...谢谢你的意见和帮助!