Skip to content

Chart rangeBar stacked not working #926

Description

@ToniJ123

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions