diff --git "a/LLM/\347\237\263\347\243\212/.keep" "b/LLM/\347\237\263\347\243\212/.keep" index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4e1f6c46e0309b4f987134ff9daac8743eece7df 100644 --- "a/LLM/\347\237\263\347\243\212/.keep" +++ "b/LLM/\347\237\263\347\243\212/.keep" @@ -0,0 +1,114 @@ + function echarts_5() { + // 基于准备好的dom,初始化echarts实例 + var myChart = echarts.init(document.getElementById('echarts5')); + + option = { + tooltip: { + trigger: 'axis', + axisPointer: {type: 'shadow'}, + },"grid": { + "top": "1%", + "right":"1%", + "bottom":"30", + "left":"15%", + }, + legend: { + data: ['中药归经', '中药归经'], + right: 'center', + top:0, + textStyle: { + color: "#fff" + }, + itemWidth: 12, + itemHeight: 10, + }, + "xAxis": [ + { + "type": "category", + + data: ['胃经','脾经','大肠经','肾经','肺经','膀胱经','胆经','三焦经','小肠经','心包经'], + axisLine: { lineStyle: {color: "rgba(255,255,255,.1)"}}, + axisLabel: { textStyle: {color: "rgba(255,255,255,.7)", fontSize: '14', }, + }, + + }, + ], + "yAxis": [ + { + "type": "value", + "name": "种", + splitLine: {show: false}, + axisTick: {show: false}, + "axisLabel": { + "show": true, + color: "rgba(255,255,255,.6)" + + }, + axisLine: {lineStyle: {color: 'rgba(255,255,255,.1)'}},//左线色 + + }, + { + "type": "value", + "name": "种", + "show": true, + axisTick: {show: false}, + "axisLabel": { + "show": true, + formatter: "{value} %", + color: "rgba(255,255,255,.6)" + }, + axisLine: {lineStyle: {color: 'rgba(255,255,255,.1)'}},//右线色 + splitLine: {show:true,lineStyle: {color:'rgba(255,255,255,.1)'}},//x轴线 + }, + ], + "series": [ + + { + "name": "中药归经", + "type": "bar", + "data": [ + 282,267,150,207,347,174,446,69,35,3,26,8 + ], + "barWidth": "20%", + + "itemStyle": { + "normal": { + barBorderRadius: 15, + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ + offset: 0, + color: '#fccb05' + }, { + offset: 1, + color: '#f5804d' + }]), + } + }, + "barGap": "0" + }, + { + "name": "中药归经", + "type": "line", + "yAxisIndex": 1, + + "data": [282,267,150,207,347,174,446,69,35,3,26,8], + lineStyle: { + normal: { + width: 2 + }, + }, + "itemStyle": { + "normal": { + "color": "#ff3300", + + } + }, + "smooth": true + } + ] + }; + // 使用刚指定的配置项和数据显示图表。 + myChart.setOption(option); + window.addEventListener("resize",function(){ + myChart.resize(); + }); + } \ No newline at end of file