| | |
| | | innerRadius: innerRadius, |
| | | radius: innerRadius + (radius - innerRadius) / 2, |
| | | }) |
| | | |
| | | if (plot.tooltip !== 'true') { |
| | | chart.tooltip(false) |
| | | } else { |
| | | chart.tooltip({ |
| | | showTitle: false, |
| | | showMarkers: false, |
| | | showMarkers: false |
| | | }) |
| | | } |
| | | |
| | | chart.legend(false) |
| | | let chart1 = chart |
| | | .interval() |
| | |
| | | } |
| | | } |
| | | |
| | | chart.interaction('element-highlight') |
| | | if (plot.interaction && plot.interaction.length) { |
| | | plot.interaction.forEach(t => { |
| | | chart.interaction(t) |
| | | }) |
| | | } |
| | | |
| | | chart.render() |
| | | } |
| | |
| | | }) |
| | | } |
| | | } |
| | | chart.interaction('element-active') |
| | | } else { |
| | | chart.axis(false) |
| | | chart.interaction('element-highlight') |
| | | let _chart = chart |
| | | .interval() |
| | | .position(`${X_axis}*${Y_axis}`) |
| | |
| | | } |
| | | } |
| | | |
| | | if (plot.interaction && plot.interaction.length) { |
| | | plot.interaction.forEach(t => { |
| | | chart.interaction(t) |
| | | }) |
| | | } |
| | | |
| | | chart.render() |
| | | } |
| | | |