DOMPDF: Why is CSS chart not rendering properly to PDF while it is showing correctly in browser
<p>I am trying to generate pdf using dompdf. My HTML/CSS working fine in browser and also it is generating pdf. If I load the html site up itself, the CSS is all correct. But when I convert from the code to PDF file, it outputs wrong. It is not generating chart correctly in pdf. Please help what is going wrong here.</p>

<p>Here is my HTML/CSS file link so that you can review if anything is wrong.</p>

<p><a href="http://codepen.io/ankitedrubric/pen/rrPvvo" rel="nofollow">http://codepen.io/ankitedrubric/pen/rrPvvo</a></p>

<p>and here is my PHP function to save pdf file.
Also i have enable def("DOMPDF_ENABLE_CSS_FLOAT", true);</p>

<pre><code>    function generatepdf($id = FALSE, $attachment = FALSE) {
    try{
        $filename = "pdf_name1";
        $html = '';
        $this-&gt;load-&gt;helper(array('dompdf', 'file'));
        $this-&gt;load-&gt;library('parser');
        $data = array('hello1' =&gt; 'Hello Mars!!', 'hello2' =&gt; 'Hello Jupiter!!');
        $parse_data = '';
        $html = $this-&gt;parser-&gt;parse('filepath_of_html_page', $data);
        pdf_create($html, $filename, TRUE, $attachment);
        }
    catch(Exception $e){
        echo $e;
    }
}
</code></pre>

<p>Thanks in advance.</p>