title

title用来显示图表的标题,你可以配置该项来设置其位置和样式。

show

  1. /**
  2. * @description 是否显示标题
  3. * @type {Boolean}
  4. * @default show = true
  5. */

text

  1. /**
  2. * @description 标题文本
  3. * @type {String}
  4. * @default text = ''
  5. */

offset

  1. /**
  2. * @description 标题位置偏移
  3. * @type {Array}
  4. * @default offset = [0, -20]
  5. */

style

  1. /**
  2. * @description 标题默认样式
  3. * @type {Object}
  4. * @default style = {Class Style的配置项}
  5. */
  6. style: {
  7. fill: '#333',
  8. fontSize: 17,
  9. fontWeight: 'bold',
  10. textAlign: 'center',
  11. textBaseline: 'bottom'
  12. }

rLevel

  1. /**
  2. * @description 标题渲染级别
  3. * 级别高者优先渲染
  4. * @type {Number}
  5. * @default rLevel = 20
  6. */

animationCurve

  1. /**
  2. * @description 标题缓动曲线
  3. * @type {String}
  4. * @default animationCurve = 'easeOutCubic'
  5. */

animationFrame

  1. /**
  2. * @description 标题缓动效果帧数
  3. * @type {Number}
  4. * @default animationFrame = 50
  5. */