Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend does not appear on Dynamic Chart #5779

Closed
2 tasks done
IzabellaDTS opened this issue Mar 6, 2024 · 0 comments
Closed
2 tasks done

Legend does not appear on Dynamic Chart #5779

IzabellaDTS opened this issue Mar 6, 2024 · 0 comments
Labels
Fixed in v16.4 Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.

Comments

@IzabellaDTS
Copy link

Description

When using the Dynamic Chart block, there is a setting that allows you to decide if you would like to show the legend, and another setting that allows you to dictate where you want the legend to appear on the chart.

Despite setting those settings as so:

image

A legend does not appear in the Northeast corner of the chart as expected:

image

This was further tested on the Rock Demo site (which is currently on V16.2), and the same results appeared.

image

Actual Behavior

The Dynamic Chart block does not show a legend when the 'Show Legend' block attribute is set to 'Yes'.

Expected Behavior

We expect the Dynamic Chart block to show a legend in the selected location when the 'Show Legend' block attribute is set to 'Yes'.

Steps to Reproduce

  1. Place a Dynamic Chart block on a page
  2. Go into the block settings.
  3. Add some SQL code
  4. Set the 'Show Legend' setting to 'Yes' and choose a Legend Position
  5. Fill out all other necessary block settings
  6. Save and see error

Here is the SQL from the demo site:
WITH [Last10Days] AS ( SELECT CONVERT(date, GETDATE()) [Date] UNION ALL SELECT DATEADD(day, -1, [Date]) FROM [Last10Days] WHERE ([Date] > GETDATE() - 9) ) SELECT 'Exception Count' [SeriesName] , d.[Date] [DateTime] , CASE WHEN exceptions.[ExceptionCount] IS NOT NULL THEN exceptions.[ExceptionCount] ELSE 0 END [YValue] FROM [Last10Days] d LEFT OUTER JOIN ( SELECT CONVERT(date, [CreatedDateTime]) [Date] , COUNT(*) [ExceptionCount] FROM [ExceptionLog] GROUP BY CONVERT(date, [CreatedDateTime]) ) exceptions ON d.[Date] = exceptions.[Date] ORDER BY d.[Date];

Issue Confirmation

  • Perform a search on the Github Issues to see if your bug or enhancement is already reported.
  • Try to reproduce the problem on a fresh install or on the demo site.

Rock Version

15.1

Client Culture Setting

en-US

@sparkdevnetwork-service sparkdevnetwork-service added Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs. labels Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in v16.4 Status: Confirmed It's clear what the subject of the issue is about, and what the resolution should be. Type: Bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

No branches or pull requests

3 participants