@Override
    public T data(Object... values) {
        if (values == null || values.length == 0) {
            return (T) this;
        }
        if (this.data == null) {
            if (this.type == AxisType.category) {
                data = new ArrayList<Object>();
            } else {
                throw new RuntimeException("数据轴不能添加类目信息!");
            }
        }
        this.data.addAll(Arrays.asList(values));
        return (T) this;
    }
@ Override public T data ( Object ... values ) { if ( values == null || values . length == 0 ) { return ( T ) this ; } if ( this . data == null ) { if ( this . type == AxisType . category ) { data = new ArrayList < Object > ( ) ; } else { throw new RuntimeException ( "数据轴不能添加类目信息!" ) ; } } this . data . addAll ( Arrays . asList ( values ) ) ; return ( T ) this ; }
添加坐标轴的类目属性

@param values
@return