如何删除标签并保持y轴?

我不希望删除轴,只有标签。基本上没有文本或数字的Y轴

chart1.addAxis("y", {
                labels: false,
                vertical : true,
                leftBottom : true,

            });
.

有帮助吗?

解决方案

can you try like this:

addAxis("y", {
                vertical: true,
                fixLower: "major",
                fixUpper: "major",
        labelFunc:function(){
          return " ";
             }
         });

Pls. Dont remove the one single space inside the quotes.

or here is a post which shows how to delete an axis from the chart. Hiding x Axis in dojox.charting

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top