| | |
| | | .size(3) |
| | | .shape('circle') |
| | | } |
| | | |
| | | if (plot.interaction && plot.interaction.length) { |
| | | plot.interaction.forEach(t => { |
| | | chart.interaction(t) |
| | | }) |
| | | } |
| | | chart.render() |
| | | } else { |
| | | this.customrender(data) |
| | |
| | | }) |
| | | |
| | | view1.data(dvt.rows) |
| | | view1.interaction('other-visible') |
| | | view1.scale('value', { |
| | | nice: true, |
| | | range: [0, 0.9] |
| | |
| | | if (plot.colors && plot.colors.length > 0) { |
| | | let limit = chartColors.length |
| | | _chart.color('key', (key) => { |
| | | // return 'l(90) 0:#1890ff 1:#70cdd0' |
| | | if (colors.has(key)) { |
| | | return colors.get(key) |
| | | } else { |
| | |
| | | }) |
| | | |
| | | view2.data(dv.rows) |
| | | view2.interaction('other-visible') |
| | | |
| | | view2.legend(false) |
| | | |
| | |
| | | } |
| | | } |
| | | }) |
| | | |
| | | if (plot.interaction && plot.interaction.length) { |
| | | plot.interaction.forEach(t => { |
| | | if (t === 'element-active' || t === 'element-highlight') { |
| | | chart.interaction(t) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | chart.render() |
| | | } |
| | |
| | | _chart.style({ radius: [plot.barRadius, plot.barRadius, 0, 0] }) |
| | | } |
| | | } |
| | | |
| | | if (plot.interaction && plot.interaction.length) { |
| | | plot.interaction.forEach(t => { |
| | | chart.interaction(t) |
| | | }) |
| | | } |
| | | |
| | | chart.render() |
| | | } else { |