Legend does not appear on Dynamic Chart #5779
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.
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:
A legend does not appear in the Northeast corner of the chart as expected:
This was further tested on the Rock Demo site (which is currently on V16.2), and the same results appeared.
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
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
Rock Version
15.1
Client Culture Setting
en-US
The text was updated successfully, but these errors were encountered: