123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import * as echarts from "echarts";
- export default function getData(params) {
- console.log(params || '')
- let data = [10, 34, 82, 93, 91, 133, 120]
- return {
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'cross',
- label: {
- backgroundColor: '#6a7985'
- }
- }
- },
- grid: {
- top: 10,
- left: 0,
- right: 10,
- bottom: 0,
- containLabel: true,
- },
- xAxis: {
- type: 'category',
- boundaryGap: false,
- data: ['09', '10', '11', '12', '13', '14', '15'],
- axisLabel: {
- color: "#CCC",
- },
- axisTick: {
- show: false,
- },
- axisLine: {
- show: true
- },
- },
- yAxis: {
- type: 'value',
- axisLabel: {
- color: "#CCC",
- },
- axisLine: {
- show: true,
- lineStyle: {
- color: "#CCC",
- },
- },
- splitLine: {
- show: false,
- lineStyle: {
- color: "#CCC",
- },
- },
- },
- series: [{
- data: data,
- type: 'line',
- smooth: true,
- showSymbol: false,
- lineStyle: {
- width: 1
- },
- areaStyle: {
- opacity: 0.8,
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
- offset: 0,
- color: 'rgba(73, 185, 245,1)'
- }, {
- offset: 1,
- color: 'rgba(73, 185, 245,.1)'
- }])
- },
- }]
- }
- }
|