You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
127 lines
3.2 KiB
127 lines
3.2 KiB
/*
|
|
* @Author: your name
|
|
* @Date: 2021-10-09 11:01:19
|
|
* @LastEditTime: 2021-10-16 10:42:52
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /data-show/src/views/Index/spreadTheSound/opt.js
|
|
*/
|
|
export default function createOpt() {
|
|
return {
|
|
grid: {
|
|
left: 16,
|
|
right: 16,
|
|
bottom: 16,
|
|
top: 56,
|
|
containLabel: true
|
|
},
|
|
tooltip: {
|
|
trigger: "axis",
|
|
backgroundColor: "#08182F",
|
|
color: "#fff",
|
|
borderColor: "#3373CC",
|
|
textStyle: {
|
|
color: "#fff", //设置文字颜色
|
|
},
|
|
extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;"
|
|
},
|
|
legend: {
|
|
textStyle: { //图例文字的样式
|
|
color: '#fff'
|
|
},
|
|
y: 10,
|
|
x: 16
|
|
},
|
|
xAxis: {
|
|
type: 'category',
|
|
axisTick: {
|
|
show: false,
|
|
},
|
|
axisLine: {
|
|
show: false,
|
|
lineStyle: {
|
|
color: "#fff",
|
|
},
|
|
},
|
|
data: ['名人', '媒体', '企业', '政府', '个人大v']
|
|
},
|
|
yAxis: {
|
|
type: 'value',
|
|
axisLine: {
|
|
show: false,
|
|
lineStyle: {
|
|
color: "#fff",
|
|
},
|
|
},
|
|
splitLine: {
|
|
lineStyle: {
|
|
type: "dashed", // y轴分割线类型
|
|
color: "#012b4b",
|
|
},
|
|
},
|
|
},
|
|
series: [
|
|
{
|
|
name: '奥迪',
|
|
type: 'bar',
|
|
stack: 'total',
|
|
barWidth: 24,
|
|
emphasis: {
|
|
focus: 'series'
|
|
},
|
|
data: [320, 302, 301, 334, 390]
|
|
},
|
|
{
|
|
name: '宝马',
|
|
type: 'bar',
|
|
stack: 'total',
|
|
barWidth: 24,
|
|
emphasis: {
|
|
focus: 'series'
|
|
},
|
|
data: [120, 132, 101, 134, 90]
|
|
},
|
|
{
|
|
name: '奔驰',
|
|
type: 'bar',
|
|
stack: 'total',
|
|
barWidth: 24,
|
|
emphasis: {
|
|
focus: 'series'
|
|
},
|
|
data: [220, 182, 191, 234, 290]
|
|
},
|
|
{
|
|
name: '吉利',
|
|
type: 'bar',
|
|
stack: 'total',
|
|
barWidth: 24,
|
|
emphasis: {
|
|
focus: 'series'
|
|
},
|
|
data: [150, 212, 201, 154, 190]
|
|
},
|
|
{
|
|
name: '大众',
|
|
type: 'bar',
|
|
stack: 'total',
|
|
barWidth: 24,
|
|
emphasis: {
|
|
focus: 'series'
|
|
},
|
|
data: [820, 832, 901, 934, 1290]
|
|
},
|
|
{
|
|
name: '别克',
|
|
type: 'bar',
|
|
stack: 'total',
|
|
barWidth: 24,
|
|
emphasis: {
|
|
focus: 'series'
|
|
},
|
|
data: [820, 832, 901, 934, 1290]
|
|
}
|
|
]
|
|
}
|
|
|
|
} |