qinbo
2021-11-01 553d484651793c490039530e69087cfff06714fc
echarts样式 bug fix
2个文件已修改
48 ■■■■■ 已修改文件
widgetsTS/widget_detail/view.js 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_detail/widget.js 1 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_detail/view.js
@@ -95,6 +95,14 @@
                        top: '20px',
                        x: 'center'
                    },
                    dataZoom: [
                        {
                            type: 'inside',
                            xAxisIndex: [0],
                            start: 30,
                            end: 50
                        }
                    ],
                    legend: {
                        // orient 设置布局方式,默认水平布局,可选值:'horizontal'(水平) ¦ 'vertical'(垂直)
                        orient: 'horizontal',
@@ -141,17 +149,13 @@
                    xAxis: {
                        name: '时间',
                        type: 'category',
                        axisLine: {
                            lineStyle: {
                                // 设置x轴颜色
                                color: '#87CEFA'
                            }
                        },
                        // 设置X轴数据旋转倾斜
                        axisLabel: {
                            color: '#87CEFA', //坐标的字体颜色
                            interval: 0, //设置X轴数据间隔几个显示一个,为0表示都显示
                            formatter: '{value} 时'
                            formatter:  (value)=> {
                                return value.substring(0,2)+'日'+"\n"+value.substring(3,5)+'时';
                            }
                           
                        },
                        // boundaryGap值为false的时候,折线第一个点在y轴上
@@ -160,6 +164,10 @@
                        axisLine: {
                            symbol: ['none', 'arrow'], //箭头一端没效果,一端箭头
                            symbolOffset: [0, 8], //箭头段移动8个像素
                            lineStyle: {
                                // 设置x轴颜色
                                color: '#87CEFA'
                            }
                        }
                    },
                    yAxis: [{
@@ -414,6 +422,15 @@
                        top: '20px',
                        x: 'center'
                    },
                    dataZoom: [
                        {
                            type: 'inside',
                            xAxisIndex: [0],
                            start: 30,
                            end: 50
                        }
                    ],
                    legend: {
                        // orient 设置布局方式,默认水平布局,可选值:'horizontal'(水平) ¦ 'vertical'(垂直)
                        orient: 'horizontal',
@@ -458,20 +475,16 @@
                        }
                    },
                    xAxis: {
                        show :true,
                        name: '时间',
                        type: 'category',
                        axisLine: {
                            lineStyle: {
                                // 设置x轴颜色
                                color: '#87CEFA'
                            }
                        },
                        // 设置X轴数据旋转倾斜
                        axisLabel: {
                            color: '#87CEFA', //坐标的字体颜色
                            interval: 0, //设置X轴数据间隔几个显示一个,为0表示都显示
                            formatter: '{value} 时'
                            formatter:  (value)=> {
                                return value.substring(0,2)+'日'+"\n"+value.substring(3,5)+'时';
                            }
                        },
                        // boundaryGap值为false的时候,折线第一个点在y轴上
                        boundaryGap: false,
@@ -479,6 +492,10 @@
                        axisLine: {
                            symbol: ['none', 'arrow'], //箭头一端没效果,一端箭头
                            symbolOffset: [0, 8], //箭头段移动8个像素
                            lineStyle: {
                                // 设置x轴颜色
                                color: '#87CEFA'
                            }
                        }
                    },
                    yAxis: [{
widgetsTS/widget_detail/widget.js
@@ -34,7 +34,6 @@
            this.appDateHourStart = mars3d.global_variables.DefaultDateTimeStart;
            this.appDateHourEnd = mars3d.global_variables.queryDataTStart;
            console.log(this.appDateHourEnd)
        }