code: function getCandlePoints(x, y, width) {
    var yValues = _sortValue(y);
    var points = [{
      x: x,
      y: yValues[0]
    }, {
      x: x,
      y: yValues[1]
    }, {
      x: x - width / 2,
      y: yValues[2]
    }, {
      x: x - width / 2,
      y: yValues[1]
    }, {
      x: x + width / 2,
      y: yValues[1]
    }, {
      x: x + width / 2,
      y: yValues[2]
    }, {
      x: x,
      y: yValues[2]
    }, {
      x: x,
      y: yValues[3]
    }]; // 按照顺时针连接
    return points;
  }
docs: 获取K线图的points