帮助中有说可以通过数字设置最大值 最小值 但是没给具体示例,以下代码能运行,不报错 其它设置有效果了,就是最大值 最小值没有设置,请指点。
var axes = chart.axes();
// the style of the axis: color, fontFamily, fontSize
axes.primaryCategory.style.color = '#f15353';
// the line style of the axis: color, width
axes.primaryCategory.lineStyle.width = 0;
// the tick position of the axis: majorTickPosition and minorTickPosition
axes.primaryCategory.majorTickPosition = GC.Spread.Sheets.Charts.TickMark.none
// the tick label position of the axis
axes.primaryCategory.tickLabelPosition = GC.Spread.Sheets.Charts.TickLabelPosition.none;
// the tick label spacing of the axis
axes.primaryCategory.tickLabelSpacing = 3;
// the format of the axis
axes.primaryCategory.numberFormatLinked = true;
// the title of the axis: text, color, fontFamily and font size
axes.primaryCategory.title.text = 'Test Axis Title';
axes.primaryCategory.title.fontSize = 14;
// axes.primaryCategory.minimum=0.3;
// axes.primaryCategory.maximum=0.65;
axes.primaryValue.minimum = 0.3;
axes.primaryValue.maximum = 0.65;
chart.axes(axes); |