/*
 * @LastEditors: gcz
 */

import themeColor from "./color"
let page6Char1Schema = {
    title: {
        text: '树种株数统计',
        textStyle: {
            color: themeColor.mainColor,
        },
        show: false
    },
    grid: {
        containLabel: true,
        top: "30px",
        left: '10px',
        bottom: '20px',
        right: '24px'
    },
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    legend: {
        top: '0',
        textStyle: {
            color: '#fff',
        }
    },
    yAxis: {
        type: 'value',
        axisLabel: {
            color: "rgba(255, 255, 255, 1)"
        }
    },
    xAxis: {
        type: 'category',
        data: ['马纳存', '三星存', '两家存', '龙子田', '腊寨存', '大黑土', '小黑土'],
        axisLabel: {
            color: "rgba(255, 255, 255, 1)"
        }
    },
    dataZoom: [
        {
            xAxisIndex: 0, //这里是从X轴的0刻度开始
            show: true, //是否显示滑动条，不影响使用
            type: 'slider', // 这个 dataZoom 组件是 slider 型 dataZoom 组件
            startValue: 0, // 从头开始。
            endValue: 7, // 一次性展示6个
            height: 5, //组件高度
            bottom: '10px',
            borderColor: 'transparent',
            fillerColor: '#14c6d3',
            zoomLock: true,
            showDataShadow: false, //是否显示数据阴影 默认auto
            backgroundColor: '#0b1511',
            showDetail: false, //即拖拽时候是否显示详细数值信息 默认true
            realtime: true, //是否实时更新
            filterMode: 'filter',
            handleIcon: 'M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',
            handleStyle: {
                color: '#14c6d3',
                borderColor: 'transparent',
                borderRadius: 10
            },
            moveHandleSize: 20,
            moveOnMouseMove: true,
            maxValueSpan: 7,
            minValueSpan: 7,
            moveHandleSize: 0,
            brushSelect: false, //刷选功能，设为false可以防止拖动条长度改变 ************（这是一个坑）
        },
    ],
    series: [
        {
            name: '病虫害',
            type: 'bar',
            stack: 'total',
            label: {
                show: false
            },
            emphasis: {
                focus: 'series'
            },
            data: [1, 1, 1, 2, 2, 1, 0]
        },
        {
            name: '乱砍乱伐',
            type: 'bar',
            stack: 'total',
            label: {
                show: false
            },
            emphasis: {
                focus: 'series'
            },
            data: [1, 8, 8, 2, 6, 9, 9]
        },
        {
            name: '火灾',
            type: 'bar',
            stack: 'total',
            label: {
                show: false
            },
            emphasis: {
                focus: 'series'
            },
            data: [8, 1, 1, 6, 2, 0, 1]
        }
    ]

}
export default page6Char1Schema