# Including chart.js in my hugo site

**URL:** https://discourse.gohugo.io/t/including-chart-js-in-my-hugo-site/21156
**Category:** support
**Created:** [October 7, 2019, 11:53am UTC](https://discourse.gohugo.io/t/including-chart-js-in-my-hugo-site/21156 "2019-10-07T11:53:41Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jamesb93](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jamesb93/32/9709_2.png) [@jamesb93](https://discourse.gohugo.io/u/jamesb93)
#### Post date: [October 7, 2019, 12:17pm UTC](https://discourse.gohugo.io/t/including-chart-js-in-my-hugo-site/21156/4 "2019-10-07T12:17:06Z")

</div>

Also, I have noticed in the code if I do not include

```js
<script src="/js/Chart.min.js"></script>

```

Immediately before the canvas, the output of Hugo will replace quotes with this:  
`&lsquo;` and `&rsquo;`.

Which as I understand it is the same issue someone pointed out here:

> [@Inner javascripts in shortcodes shows as PRE](https://discourse.gohugo.io/t/inner-javascripts-in-shortcodes-shows-as-pre/21095):
>
> How can I avoid having my inner javascript in a shortcode show encapsulated within \<pre\>\</code\>? \<script\> alert... Shows as \<pre\>\<code\>alert... If I add my JS inside a partial I get these: var iframe = document.getElementById(&lsquo;iframe&rsquo;) Instead of: var iframe = document.getElementById('iframe');

Is this a problem with the theme then?

Again, here is the source:

> **[GitHub - jamesb93/hugo-book at 586b2afda40231cf60ec985470be293e02ab9588](https://github.com/jamesb93/hugo-book/tree/586b2afda40231cf60ec985470be293e02ab9588)**
>
> 586b2afda40231cf60ec985470be293e02ab9588

---

_[View the full topic](https://discourse.gohugo.io/t/including-chart-js-in-my-hugo-site/21156)._
