import echarts from 'echarts'

var blueliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#2196f3' },
  { offset: 0.5, color: '#4790d4' },
  { offset: 1, color: '#3788d4' }
])
var yellowliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#f5ac40' },
  { offset: 0.5, color: '#f7a731' },
  { offset: 1, color: '#f79709' }
])
var yellowliner2 = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#ffd55b' },
  { offset: 0.5, color: '#ffdc77' },
  { offset: 1, color: '#ffe59b' }
])
var greenliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#48c1a2' },
  { offset: 0.5, color: '#2ebb96' },
  { offset: 1, color: '#14b78c' }
])

var pinkliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#f98f5c' },
  { offset: 0.5, color: '#fb844a' },
  { offset: 1, color: '#ff7a3a' }
])

var purpleliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#9e7af7' },
  { offset: 0.5, color: '#8150f9' },
  { offset: 1, color: '#6c31fd' }
])

var grayliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#91aebb' },
  { offset: 0.5, color: '#85a3b1' },
  { offset: 1, color: '#607d8b' }
])

var redliner = new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  { offset: 0, color: '#ef7b7b' },
  { offset: 0.5, color: '#e26363' },
  { offset: 1, color: '#e25555' }
])

export const ColorDefines = {
  blueliner,
  yellowliner,
  yellowliner2,
  greenliner,
  redliner,
  purpleliner,
  grayliner,
  pinkliner
}

export default [blueliner, yellowliner, yellowliner2, greenliner, redliner, purpleliner, grayliner, pinkliner]
