echarts3d数据

import { EChartsOption } from 'echarts'
export interface correctRateType {
    [index:number]:[number, number, number]
}
export function correctRate (): EChartsOption {
  return {
    title: {
      text: '【路面震动实时值】',
      subtext: '单位(mm/s)',
      subtextStyle: {
        color: '#ffffff'
      },
      textStyle: {
        fontSize: 14,
        color: '#ffffff'
      }
    },
    grid3D: {
      top: '3%'
    },
    xAxis3D: {
      min: 0,
      max: 50,
      axisLabel: {
        textStyle: {
          color: '#ffffff'
        }
      }
    },
    yAxis3D: {
      min: 0,
      max: 50,
      axisLabel: {
        textStyle: {
          color: '#ffffff'
        }
      }
    },
    zAxis3D: {
      min: 0,
      max: 50,
      axisLabel: {
        textStyle: {
          color: '#ffffff'
        }
      }
    },
    dataset: {
      source: [
        [0, 36, 17],
        [8, 34, 35],
        [13, 39, 44],
        [35, 32, 32],
        [44, 32, 43]
      ]
    },
    series: [
      {
        type: 'scatter3D',
        symbolSize: 5,
        encode: {
          x: 'x',
          y: 'y',
          z: 'z'
        }
      }
    ]
  }as unknown as EChartsOption
}

  

posted @ 2022-04-26 13:49  zjxgdq  阅读(37)  评论(0编辑  收藏  举报