# How to start with D3.js basic example Line chart

**URL:** <https://discourse.nodered.org/t/how-to-start-with-d3-js-basic-example-line-chart/65907>\
**Category:** General\
**Created:** [2 August 2022 03:48 UTC](https://discourse.nodered.org/t/how-to-start-with-d3-js-basic-example-line-chart/65907 "2022-08-02T03:48:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Zupayruna1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zupayruna1/32/65541_2.png) [@Zupayruna1](https://discourse.nodered.org/u/Zupayruna1)\
**Post date:** [10 August 2022 02:58 UTC](https://discourse.nodered.org/t/how-to-start-with-d3-js-basic-example-line-chart/65907/4 "2022-08-10T02:58:04Z")

</div>

I have news, the example for many lines works now, the solution was only add this **dataset1 = {{{payload.chartdata2}}}** in the template for multiple line, and maybe you can look this [check chart ui](https://discourse.nodered.org/t/fontawesome-icon-with-incorrect-color/16521/6)

u will see something like this:

 ![imagen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d664d8765dd9f4056aeeda1bfa7c8f8d7ce57b2.png)

I hope can be useful for more people,  
Best regards

---

_[View the full topic](https://discourse.nodered.org/t/how-to-start-with-d3-js-basic-example-line-chart/65907)._
