| | |
| | | _config.plot.height = _config.plot.height - 30 |
| | | } |
| | | |
| | | if (_config.style) { |
| | | _config.style = {..._config.style, minHeight: (config.plot.height || 400)} |
| | | } else { |
| | | _config.style = {minHeight: (config.plot.height || 400)} |
| | | } |
| | | _config.style.height = config.plot.height || 400 |
| | | |
| | | let transfield = {} |
| | | _config.columns.forEach(col => { |
| | |
| | | } |
| | | }) |
| | | } |
| | | if (plot.barRadius) { |
| | | _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) |
| | | } |
| | | } else if (item.chartType === 'line') { |
| | | let _chart = chart |
| | | .line() |
| | |
| | | if (plot.barSize || plot.correction) { |
| | | _chart.size(plot.barSize || 35) |
| | | } |
| | | if (plot.barRadius) { |
| | | _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) |
| | | } |
| | | } else if (plot.adjust === 'stack') { |
| | | let _chart = chart |
| | | .interval() |
| | |
| | | if (plot.barSize || plot.correction) { |
| | | _chart.size(plot.barSize || 35) |
| | | } |
| | | if (plot.barRadius) { |
| | | _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) |
| | | } |
| | | } |
| | | |
| | | if (plot.linkmenu && plot.linkmenu.length > 0) { |