# Send charting options with chartdata

**URL:** <https://discourse.nodered.org/t/send-charting-options-with-chartdata/75980>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [2 March 2023 08:51 UTC](https://discourse.nodered.org/t/send-charting-options-with-chartdata/75980 "2023-03-02T08:51:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@Leo](https://discourse.nodered.org/u/Leo)\
**Post date:** [2 March 2023 08:51 UTC](https://discourse.nodered.org/t/send-charting-options-with-chartdata/75980/1 "2023-03-02T08:51:21Z")

</div>

Hi,

I'm building line charts with the chart node and this is working more or less fine. I feed the data  
with e.g.

```auto
var chartData = flow.get('chartData') || {};
flow.set('chartData', [{
  "series": [""],
  "data": [rij],
  "labels": [""],
}]);

```

But I want to give options, like grid-lines, ticks etc along with it:  
Now I have to draw the graph and afterwards send the options. Is there a way to send chart  
options along with chart data ?

Tkx for the help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 April 2023 08:52 UTC](https://discourse.nodered.org/t/send-charting-options-with-chartdata/75980/2 "2023-04-01T08:52:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
