thingsboard / thingsboard

Open-source IoT Platform - Device management, data collection, processing and visualization.
https://thingsboard.io
Apache License 2.0
17.41k stars 5.14k forks source link

[Bug] #3171

Closed viktorkho closed 4 years ago

viktorkho commented 4 years ago

Describe the bug In dashboard Timeseries Flot widget doubles timeseries names in legend (plot is OK).

Your Server Environment

Your Client Environment

Desktop (please complete the following information):

Smartphone (please complete the following information):

Your Device

To Reproduce Steps to reproduce the behavior:

  1. Add Timeseries Flot widget to your dashboard, add single datasource
  2. Click on 'Save'
  3. See doubled datasource names in legend

Expected behavior Single datasource name per datasource.

Screenshots 1) 5 datasources added: https://pasteboard.co/Jjzmuz2.png 2) 10 items in the legend, 5 lines in the chart: https://pasteboard.co/Jjzndyg.png

ChantsovaEkaterina commented 4 years ago

Hello, it looks like you have two devices in your datasource. One of them has the needed telemetry, and other one doesn't. Could you check your alias, please? Also, you could use the ${entityName} pattern in data keys labels to define if the duplicated names in the legend refer to one device.

viktorkho commented 4 years ago

Hello,

you are absolutely correct - the entity alias corresponds to 2 devices. My problem was resolved when I corrected the alias used. And this is not a bug, ofcourse.

Thank you for your help!