how to pass dynamic url in c3.js? <p>There is one page on which data is displayed in csv format. And when I'm passing this url in <code>c3.js</code> then I'm not getting proper output.</p> <h2>Here is the code of <code>c3.html</code>:</h2> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="c3.css"&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="chart"&gt;&lt;/div&gt; &lt;script src="d3.min.js"&gt;&lt;/script&gt; &lt;script src="d3.v3.min.js" charset="utf-8"&gt;&lt;/script&gt; &lt;script src="c3.min.js"&gt;&lt;/script&gt; &lt;script&gt; var chart = c3.generate({ data: { url: 'view1.php/id=34.csv', } }); &lt;/script&gt; &lt;/body&gt; </code></pre> <h2> </h2> <p>When I run this script then Ii get a output like this:<a href="https://i.stack.imgur.com/89qLo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/89qLo.png" alt="enter image description here"></a></p> <p>Output of view1.php?id=34.csv is :<a href="https://i.stack.imgur.com/d9okX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d9okX.png" alt="enter image description here"></a> and code of view1.php is : <a href="https://i.stack.imgur.com/dh2A2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dh2A2.png" alt="enter image description here"></a> Can any one help me to resolve this issue?</p>