配置项如下
option = {
"tooltip": {
"backgroundColor": "rgba(255,255,255,0.9)",
"borderWidth": 1,
"borderColor": "#3398DB",
"textStyle": {
"color": "#2e384a",
"fontSize": 12,
"fontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif",
"fontWeight": 300
},
"trigger": "axis",
"axisPointer": {
"lineStyle": {
"width": 0
}
}
},
"grid": {
"show": false,
"top": 25,
"right": 4,
"left": 4,
"containLabel": true
},
"xAxis": {
"type": "category",
"splitLine": {
"show": false
},
"axisLine": {
"lineStyle": {
"color": "#ccc"
}
},
"axisTick": {
"show": false,
"lineStyle": {
"color": "#ccc"
}
},
"axisLabel": {
"textStyle": {
"color": "#7F7F7F",
"fontSize": 12,
"fontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif",
"fontWeight": 300
}
},
"data": [
"7-4",
"7-5",
"7-6",
"7-7"
]
},
"yAxis": [
{
"type": "value",
"splitLine": {
"show": true
},
"axisLine": {
"show": false
},
"axisTick": {
"show": false
},
"axisLabel": {
"textStyle": {
"color": "#7F7F7F",
"fontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif",
"fontSize": 12,
"fontWeight": "300"
}
},
"scale": true,
"min": 0,
"max": 100,
"interval": 20
}
],
"legend": {
"y": "bottom",
"itemWidth": 20,
"itemHeight": 10,
"selectedMode": false,
"textStyle": {
"color": "black",
"fontWeight": "bold",
"fontFamily": "\"Lucida Grande\", \"Lucida Sans Unicode\", Arial, Helvetica, sans-serif",
"fontSize": 12
},
"show": true,
"data": [
"任意事件的触发用户数",
"任意事件的人均次数",
"任意事件的总次数"
]
},
"dataZoom": {
"bottom": 0,
"show": false
},
"color": [
"#3398DB",
"#2ECC71",
"#E67E22",
"#745EC5",
"#E74C3C",
"#FFCD00",
"#D5C295",
"#19BC9C",
"#EF717A",
"#98AAD4",
"#A5C63A",
"#79302A",
"#34485E",
"#BDC3C7",
"#A5C63A",
"#84C1E9",
"#81E0A9",
"#F0B17A",
"#AB9EDC",
"#F0938A",
"#FFE166",
"#E5DABF",
"#75D6C3",
"#F5A9AF",
"#C1CCE5",
"#C9DC88",
"#AE827F",
"#85919E",
"#D7DBDD",
"#C9DC88"
],
"series": [
{
"name": "任意事件的触发用户数",
"type": "line",
"yAxisIndex": 0,
"showAllSymbol": true,
"symbol": "circle",
"symbolSize": 8,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"lineStyle": {
"normal": {
"type": "solid",
"color": "#3398DB"
}
},
"data": [
{
"value": 87.88,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 62185,
"measureName": "任意事件的触发用户数",
"measureUnit": "人",
"xLabel": "7-4"
},
{
"value": 90.96,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 64367,
"measureName": "任意事件的触发用户数",
"measureUnit": "人",
"xLabel": "7-5"
},
{
"value": 100,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 70761,
"measureName": "任意事件的触发用户数",
"measureUnit": "人",
"xLabel": "7-6"
},
{
"value": 80.48,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 56945,
"measureName": "任意事件的触发用户数",
"measureUnit": "人",
"xLabel": "7-7"
}
]
},
{
"name": "任意事件的人均次数",
"type": "line",
"yAxisIndex": 0,
"showAllSymbol": true,
"symbol": "circle",
"symbolSize": 8,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"lineStyle": {
"normal": {
"type": "dashed",
"color": "#3398DB"
}
},
"data": [
{
"value": 98.4,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 4.3,
"measureName": "任意事件的人均次数",
"measureUnit": "次",
"xLabel": "7-4"
},
{
"value": 97.71,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 4.27,
"measureName": "任意事件的人均次数",
"measureUnit": "次",
"xLabel": "7-5"
},
{
"value": 94.28,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 4.12,
"measureName": "任意事件的人均次数",
"measureUnit": "次",
"xLabel": "7-6"
},
{
"value": 100,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 4.37,
"measureName": "任意事件的人均次数",
"measureUnit": "次",
"xLabel": "7-7"
}
]
},
{
"name": "任意事件的总次数",
"type": "line",
"yAxisIndex": 0,
"showAllSymbol": true,
"symbol": "circle",
"symbolSize": 8,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"lineStyle": {
"normal": {
"type": "dotted",
"color": "#3398DB"
}
},
"data": [
{
"value": 91.81,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 267424,
"measureName": "任意事件的总次数",
"measureUnit": "次",
"xLabel": "7-4"
},
{
"value": 94.39,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 274946,
"measureName": "任意事件的总次数",
"measureUnit": "次",
"xLabel": "7-5"
},
{
"value": 100,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 291272,
"measureName": "任意事件的总次数",
"measureUnit": "次",
"xLabel": "7-6"
},
{
"value": 85.49,
"itemStyle": {
"normal": {
"color": "#3398DB"
}
},
"rawValue": 249011,
"measureName": "任意事件的总次数",
"measureUnit": "次",
"xLabel": "7-7"
}
]
}
]
}