|
|
|
@ -91,6 +91,17 @@ const setting = [
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 网格线 grid
|
|
|
|
|
{
|
|
|
|
|
label: '虚线',
|
|
|
|
|
type: 'switchCustom',
|
|
|
|
|
field: 'yAxis_grid_line_style_lineDash',
|
|
|
|
|
optionField: 'yAxis.grid.line.style.lineDash',
|
|
|
|
|
value: 0,
|
|
|
|
|
active: 5,
|
|
|
|
|
inactive: 0,
|
|
|
|
|
tabName: 'custom',
|
|
|
|
|
groupName: 'grid'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '宽度',
|
|
|
|
|
type: 'inputNumber',
|
|
|
|
@ -451,7 +462,7 @@ const data = [
|
|
|
|
|
{ Date: '2017-01', scales: 145 },
|
|
|
|
|
{ Date: '2017-02', scales: 207 }
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const optionHandler = 'option.yAxis.grid.line.style.lineDash = [4,setting.find(settingItem=>settingItem.field === \'yAxis_grid_line_style_lineDash\').value]'
|
|
|
|
|
// 数据处理脚本
|
|
|
|
|
const dataHandler = ''
|
|
|
|
|
|
|
|
|
@ -519,6 +530,7 @@ const option = {
|
|
|
|
|
style: {
|
|
|
|
|
stroke: '#d0d0d0',
|
|
|
|
|
lineWidth: 1,
|
|
|
|
|
lineDash: [4, 5],
|
|
|
|
|
strokeOpacity: 0.7
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -549,5 +561,6 @@ export default {
|
|
|
|
|
name,
|
|
|
|
|
option,
|
|
|
|
|
setting,
|
|
|
|
|
dataHandler
|
|
|
|
|
dataHandler,
|
|
|
|
|
optionHandler
|
|
|
|
|
}
|
|
|
|
|