Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/449.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 高图表x轴和;y轴标签中心对齐_Javascript_Graph_Highcharts - Fatal编程技术网

Javascript 高图表x轴和;y轴标签中心对齐

Javascript 高图表x轴和;y轴标签中心对齐,javascript,graph,highcharts,Javascript,Graph,Highcharts,我们使用上述代码在Highcharts中创建了四个象限,类似于,但我们希望x轴和y轴的标签显示如下所示: 如何执行此操作?您可以使用offset属性移动轴 以轴为中心 Kabulan0lak这很有帮助,但我想在x轴和y轴上将截面显示为-20,-40以及偏移量,只有端点(即设置为100)通过设置tickInterval:2实现 chart.renderer.rect(chart.plotBox.x,

我们使用上述代码在Highcharts中创建了四个象限,类似于,但我们希望x轴和y轴的标签显示如下所示:


如何执行此操作?

您可以使用
offset
属性移动轴


以轴为中心

Kabulan0lak这很有帮助,但我想在x轴和y轴上将截面显示为-20,-40以及偏移量,只有端点(即设置为100)通过设置tickInterval:2实现
chart.renderer.rect(chart.plotBox.x,                      
                            chart.plotBox.y, width, height, 1)
            .attr({
                fill: 'white',
                zIndex: 0
            })
            .add();