SQLpage icon indicating copy to clipboard operation
SQLpage copied to clipboard

Chart rangeBar stacked not working

Open ToniJ123 opened this issue 6 months ago • 1 comments

Introduction

Chart component, example 9 from documentation link not working if you set it TRUE as stacked.

Actual behavior

When you do enable TRUE as stacked, it just prints blank white chart component area.

select 
    'chart'            as component,
    'Project Timeline' as title,
    'rangeBar'         as type,
    TRUE               as time,
    'teal'             as color,
    TRUE             as stacked, --THIS CAUSES BLANK RESULT
    'cyan'             as color,
    TRUE               as labels,
    '2021-12-28'       as xmin,
    '2022-01-04'       as xmax;
select 
    'Phase 1'    as series,
    'Operations' as label,
    '2021-12-29' as value,
    '2022-01-02' as value;
select 
    'Phase 2'    as series,
    'Operations' as label,
    '2022-01-03' as value,
    '2022-01-04' as value;
select 
    'Yearly maintenance' as series,
    'Maintenance'        as label,
    '2022-01-01'         as value,
    '2022-01-03'         as value;

Screenshots

Image

Image

Expected behavior

This might be user error also from me, but I would like to have these two labels on the same row in chart rangeBar results, because they cannot be on top of each other. From the behaviour with other chart types, stacked property would allow me to achieve this result.

It does not matter if its TRUE as time, or many other properties that I tested.

Version information

0.35.0 SQLpage

ToniJ123 avatar May 28 '25 05:05 ToniJ123

hello @ToniJ123, thanks for raising this issue. lets group all your requests and tackle them for our meeting in September!

alexisrc1 avatar May 29 '25 12:05 alexisrc1