x 轴在 highcharts 上不完全可见
x-axis is not completely visible on highcharts
我正在使用 Angular 9. x 轴在我的图表中不完全可见。
我们从 highcharts 元素的外侧设置高度,试图改变高度并找到问题。它没有用。
我在下面添加它的屏幕截图。
我尝试了几种方法来修复它,但找不到解决方案。
我该如何解决这个问题?
这里是项目:https://stackblitz.com/edit/highcharts-angular-basic-line-3ra6nr
从图表配置中删除 marginBottom 属性 解决了这个问题。
chart: {
renderTo: 'container',
type: 'line',
zoomType: 'x',
marginRight: 160,
//marginBottom: 25,
},
演示:https://stackblitz.com/edit/highcharts-angular-basic-line-tfxsmn
我正在使用 Angular 9. x 轴在我的图表中不完全可见。 我们从 highcharts 元素的外侧设置高度,试图改变高度并找到问题。它没有用。 我在下面添加它的屏幕截图。 我尝试了几种方法来修复它,但找不到解决方案。 我该如何解决这个问题?
这里是项目:https://stackblitz.com/edit/highcharts-angular-basic-line-3ra6nr
从图表配置中删除 marginBottom 属性 解决了这个问题。
chart: {
renderTo: 'container',
type: 'line',
zoomType: 'x',
marginRight: 160,
//marginBottom: 25,
},
演示:https://stackblitz.com/edit/highcharts-angular-basic-line-tfxsmn