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

scatter plot are drawned too far on the left #797

Open
aedion-a opened this issue Feb 1, 2025 · 2 comments
Open

scatter plot are drawned too far on the left #797

aedion-a opened this issue Feb 1, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@aedion-a
Copy link

aedion-a commented Feb 1, 2025

Introduction

Scatter Plot, Example 7 of https://sql-page.com/component.sql?component=chart

The scatter plot are drawned too far on the left, not on the correct position.

To Reproduce

Use SQL of the documentation

select 
    'chart'               as component,
    'Gross domestic product and its growth' as title,
    'scatter'             as type,
    'Growth Rate'         as xtitle,
    'GDP (Trillions USD)' as ytitle,
    500                   as height,
    8                     as marker,
    0                     as xmin,
    10                    as xmax,
    0                     as ymin,
    25                    as ymax,
    5                     as yticks;
select 
    'Brazil' as series,
    2.5      as x,
    2        as y;
select 
    'China' as series,
    6.5     as x,
    14      as y;
select 
    'United States' as series,
    2.3             as x,
    21              as y;
select 
    'France' as series,
    1.5      as x,
    3        as y;
select 
    'South Africa' as series,
    0.9            as x,
    0.3            as y;

Actual behavior

Unites States, Brazil and China plots are drawned too far on the left.

Screenshots

x axis : Growth Rate

United states

Image

the 2.3 (x) is not after the "2 marker"

Brazil

Image

the 2.5 (x) is not after the "2 marker"

China

Image

the 6.5 (x) is not after the "6 marker"

Version information

  • OS:
  • Database
  • SQLPage Version : 0.32.1
@aedion-a aedion-a added the bug Something isn't working label Feb 1, 2025
@aedion-a aedion-a changed the title scatter plot seems are drawned too far on the left scatter plot are drawned too far on the left Feb 1, 2025
@lovasoa
Copy link
Collaborator

lovasoa commented Feb 5, 2025

Hi @aedion-a ! Thank you for reporting this ! I'm looking into it.

@lovasoa
Copy link
Collaborator

lovasoa commented Feb 5, 2025

I reported the issue upstream to the ApexCharts plotting library as apexcharts/apexcharts.js#4935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants