# How to use javascript libraries (e.g. gauge.js)

**URL:** <https://discourse.processing.org/t/how-to-use-javascript-libraries-e-g-gauge-js/12393>\
**Category:** Libraries\
**Created:** [June 29, 2019, 11:52pm UTC](https://discourse.processing.org/t/how-to-use-javascript-libraries-e-g-gauge-js/12393 "2019-06-29T23:52:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![demket](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@demket](https://discourse.processing.org/u/demket)\
**Post date:** [June 29, 2019, 11:52pm UTC](https://discourse.processing.org/t/how-to-use-javascript-libraries-e-g-gauge-js/12393/1 "2019-06-29T23:52:04Z")

</div>

Hi, is it possible to use external javascript libraries like gauge.js? I’ve added the p5.dom.min.js file in a similar way to the Gauge.min.js file, but it doesn’t work.

Thanks

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 30, 2019, 1:23am UTC](https://discourse.processing.org/t/how-to-use-javascript-libraries-e-g-gauge-js/12393/2 "2019-06-30T01:23:38Z")

</div>

Some sketches using other libraries:

* * *

> **[DatGuiTest](http://bl.ocks.org/GoSubRoutine/861b48f0b0118219c6a7cdd28309ee62)**
>
> GoSubRoutine’s Block 861b48f0b0118219c6a7cdd28309ee62

  

> <https://gist.github.com/GoSubRoutine/861b48f0b0118219c6a7cdd28309ee62>

* * *

> **[p5.Play Instance Mode Example](https://bl.ocks.org/GoSubRoutine/cf739128f389766f5d9cb631c9c358a6)**
>
> GoSubRoutine’s Block cf739128f389766f5d9cb631c9c358a6

  

> <https://gist.github.com/GoSubRoutine/cf739128f389766f5d9cb631c9c358a6>

* * *

> **[Toxic VerletParticle2D](https://bl.ocks.org/GoSubRoutine/f4e383cfc4de8b063df3ee1c3fc66419)**
>
> GoSubRoutine’s Block f4e383cfc4de8b063df3ee1c3fc66419

  

> <https://gist.github.com/GoSubRoutine/f4e383cfc4de8b063df3ee1c3fc66419>
>
> There are more than three files. show original

* * *

---

<div class="post-metadata">

**Author:** ![demket](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@demket](https://discourse.processing.org/u/demket)\
**Post date:** [June 30, 2019, 1:51am UTC](https://discourse.processing.org/t/how-to-use-javascript-libraries-e-g-gauge-js/12393/3 "2019-06-30T01:51:24Z")

</div>

Thanks I succeed, how could i set the gauge position and size in canvas.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 30, 2019, 2:02am UTC](https://discourse.processing.org/t/how-to-use-javascript-libraries-e-g-gauge-js/12393/4 "2019-06-30T02:02:38Z")

</div>

Never heard about that library, sorry. 😖
