app icon indicating copy to clipboard operation
app copied to clipboard

Inconsistent Label Behavior in Custom Charts (Analytics Section)

Open seusur opened this issue 9 months ago • 1 comments

Description:

There is an issue with custom charts in the Analytics section. The behavior of labels is inconsistent depending on the selected option in the Labels field:

  • When selecting "Title" or "Title and %", the query title is displayed on the chart.
  • When selecting "Title and tests amount" or "Title, tests amount and %", the query itself is used as the label instead.
  • This inconsistency makes it unclear which labeling logic is applied.
  • Additionally, very long queries can overlap the entire chart, making it unreadable.
  • The percentage (%) value is missing when selecting "Title, tests amount and %", even though it should be displayed.

To Reproduce

  1. Navigate to the Analytics section -> Custom Charts -> Create new chart - /projects/{project_id}/analytics/charts/new
  2. Create a custom chart, add query with query title.
  3. Select different Label options.
  4. Observe that:
    • Long queries overlap the chart when selecting "Title and tests amount" or "Title, tests amount and %"
    • The percentage (%) is missing when selecting "Title, tests amount and %".

Expected behavior

  • Labels should follow a consistent logic across all selection options. When selecting Label "Title ..." should be displayed query title.
  • The percentage (%) should be displayed when selecting "Title, tests amount and %".

Screenshots

Image

Image

Image

seusur avatar Mar 31 '25 12:03 seusur

@seusur Hello! Please show your list of queries if possible

Image

littlefrontender avatar Apr 01 '25 10:04 littlefrontender

@seusur please try adding titles as it is shown above

TetianaKhomenko avatar May 07 '25 09:05 TetianaKhomenko

@littlefrontender hello! Screenshot:

Image

seusur avatar May 13 '25 09:05 seusur

Hi @seusur ! Thanks for reporting the issue. The issue was fixed.

Image

Image

Image

Image

Image

YanaBaranova0909 avatar May 19 '25 11:05 YanaBaranova0909