Skip to content

Commit

Permalink
[opt] Click event return extra params.
Browse files Browse the repository at this point in the history
  • Loading branch information
supervons committed Sep 12, 2022
1 parent ec1601a commit 7554c5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Echarts/renderChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export default function renderChart(props) {
}
myChart.on('click', (params)=>{
const clickParams = {
componentType:params.componentType || "",
seriesType:params.seriesType || "",
seriesIndex:params.seriesIndex || 0,
seriesName:params.seriesName || "",
dataIndex:params.dataIndex || 0,
data:params.data || {},
dataType:params.dataType || "",
color:params.color || "",
name: params.name || "",
value: params.value || 0,
type: "click"
Expand Down

0 comments on commit 7554c5f

Please sign in to comment.