Skip to content

Update tooltip-setOption.html#11506

Closed
jsmayo wants to merge 1 commit intoapache:masterfrom
jsmayo:patch-1
Closed

Update tooltip-setOption.html#11506
jsmayo wants to merge 1 commit intoapache:masterfrom
jsmayo:patch-1

Conversation

@jsmayo
Copy link
Copy Markdown

@jsmayo jsmayo commented Oct 29, 2019

Attempting to fix issue: 11377 but cannot find where it's pointing to in this repo. This resolved the issue on my forked repo:

var option = {
  series: [
    {
      type: 'treemap',
      data: [
        {
          name: 'A点我,是0?',
          value: 10
        },
        {
          name: 'B点我,dataIndex==1?',
          value: 20
        }
      ]
    }
  ],
  grid: {left:0,right:0,top:0,bottom:0}
};

var myChart = echarts.init(root);
myChart.setOption(option);
myChart.setDataSource(grid); 
myChart.on('click', params => {
  alert('dataIndex==' + params.dataIndex + '?');
})

Attempting to fix issue: [11377](apache#11377) but cannot find where it's pointing to in this repo.  This resolved the issue on my forked repo: 
```
var option = {
  series: [
    {
      type: 'treemap',
      data: [
        {
          name: 'A点我,是0?',
          value: 10
        },
        {
          name: 'B点我,dataIndex==1?',
          value: 20
        }
      ]
    }
  ],
  grid: {left:0,right:0,top:0,bottom:0}
};

var myChart = echarts.init(root);
myChart.setOption(option);
myChart.setDataSource(grid); 
myChart.on('click', params => {
  alert('dataIndex==' + params.dataIndex + '?');
})
```
@pissang
Copy link
Copy Markdown
Contributor

pissang commented Oct 30, 2019

Hi @jsmayo What is this PR for? Can't find any code about the method setDataSource

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 3, 2021

This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.

@github-actions github-actions Bot added the stale Inactive for a long time. Will be closed in 7 days. label Nov 3, 2021
@github-actions
Copy link
Copy Markdown
Contributor

This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Inactive for a long time. Will be closed in 7 days.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants