ChartJs 条形图条形值显示低于 pdf 中的 Y 轴值?

时间:2021-07-08 17:43:26

标签: javascript chart.js bar-chart wkhtmltopdf jscharts

我用chart js创建了一个条形图,下面是我的代码

版本:2.9.4

select t.*,
       row_number() over (order by brick_id) as cumulative_bricks,
       sum(case when colour = 'blue' then 1 else 0 end) over (order by brick_id) as blue_bricks,
       sum(case when colour = 'red' then 1 else 0 end) over (order by brick_id) as red_bricks,
       sum(case when colour = 'green' then 1 else 0 end) over (order by brick_id) as green_bricks
from t;

我在 pdf 中得到的输出如下所示,我使用的是 wkhtmltopdf。但在html页面中没问题。

enter image description here

问题是显示的条形尺寸小于 Y 轴值。这里条形值 3 显示在 Y 轴值 3 下方。我的期望是它等于 3。

0 个答案:

没有答案