Create a diagram that can change the X-axis label

Good morning to all!!
I am developing a software to datalogging, and in the report, I want to create a chart that read the file with data registers, a txt file and shows a chart with that data. The problem is X-axis label, I want to show the time saves in the that file, no the real time. With the chart included in the dashboard, I haven´t other option to show in the X-axis label that labels with the real time. Do you know if it is possible with other chart´s node?
Thanks for your time.

I am assuming older dashboard...

it should show whatever you are sending as label to x - axis. can you post an example

image

[{"id":"c357ee51a3ab8bf2","type":"ui_chart","z":"4cde86148e5b95f7","name":"","group":"fdedcd61c681d69a","order":8,"width":"9","height":"6","label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":425,"y":775,"wires":[[]]},{"id":"de84057cee7091c7","type":"inject","z":"4cde86148e5b95f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{ \"series\": [\"A\", \"B\", \"C\"], \"data\": [     [{ \"x\": 1504029632890, \"y\": 5 },      { \"x\": 1504029636001, \"y\": 4 },      { \"x\": 1504029638656, \"y\": 2 }     ],     [{ \"x\": 1504029633514, \"y\": 6 },      { \"x\": 1504029636622, \"y\": 7 },      { \"x\": 1504029639539, \"y\": 6 }     ],     [{ \"x\": 1504029634400, \"y\": 7 },      { \"x\": 1504029637959, \"y\": 7 },      { \"x\": 1504029640317, \"y\": 7 }     ] ], \"labels\": [\"\"] }]","payloadType":"json","x":275,"y":775,"wires":[["c357ee51a3ab8bf2"]]},{"id":"fdedcd61c681d69a","type":"ui_group","name":"LIVE","tab":"fbe9cc4da47a8d17","order":1,"disp":false,"width":"44","collapse":false,"className":""},{"id":"fbe9cc4da47a8d17","type":"ui_tab","name":"NEWLIVE","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

image

[{"id":"c357ee51a3ab8bf2","type":"ui_chart","z":"4cde86148e5b95f7","name":"","group":"fdedcd61c681d69a","order":8,"width":"9","height":"6","label":"chart","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":425,"y":775,"wires":[[]]},{"id":"de84057cee7091c7","type":"inject","z":"4cde86148e5b95f7","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[{     \"series\": [\"X\", \"Y\", \"Z\" ],     \"data\": [ [5,6,9,10], [3,8,5,10], [6,7,2,10] ],     \"labels\": [ \"Jan\", \"Feb\", \"Mar\", \"Apr\" ] }]","payloadType":"json","x":205,"y":800,"wires":[["c357ee51a3ab8bf2"]]},{"id":"fdedcd61c681d69a","type":"ui_group","name":"LIVE","tab":"fbe9cc4da47a8d17","order":1,"disp":false,"width":"44","collapse":false,"className":""},{"id":"fbe9cc4da47a8d17","type":"ui_tab","name":"NEWLIVE","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Good morning!!
I am a new user in node red and I have a chart already created in node red, I use the default chart in the dashboard.
I send you a capture of this nodes.


That you can see, I read the data registers in a txt file and show tha data in a table and in a chart for observe the test.
Thankyou

It is really hard to answer your question as you have not shown
the incoming data, how the data is display at current time, how you wish the data to be displayed and how your flow is configured.
All this should be in a form that is copyable and well formed.

How to import/export a flow

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json

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