Maher
Maher

Reputation: 373

Highstock chart export as PDF with image and text in title

I implemented High Stock chart in my page. i need image in chart title and i successfully did that using below code..

title: {
 useHTML:true,
 text: img_src +'Title'';
}

Image is show in chart but when i try to export as pdf its only show me title in pdf file not image. I refer this example http://jsfiddle.net/sameekmishra/LHSey/188/ but its use highcharts.js and I have highstock.js .
When i modified above fiddle example with highstock.js then above example also did not worked !

Here is same fiddle but with high stock js : https://jsfiddle.net/vukwbu1r/2/
Anyone have idea how I can export title with image in pdf export ?

Upvotes: 0

Views: 768

Answers (1)

Rohan Kumar
Rohan Kumar

Reputation: 40639

You need to use exporting.allowHTML

exporting: {
    allowHTML: true, // for title having html while exporting
},

Live Demo

Updated Demo with Highstock JS

Upvotes: 1

Related Questions