taiielmehdi001 opened a new issue #15302:
URL: https://github.com/apache/echarts/issues/15302
i am using pie chart with some data but when i try to add tooltip not
working ??
this my js script
```
var chartDom = document.getElementById('chart');
var myChart = echarts.init(chartDom);
var option;
option = {
title: {
text: 'Candy',
subtext: ''
},
tooltip: {
trigger: 'item'
},
legend: {
data: ['Projet']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'value',
boundaryGap: [0, 0.01]
},
yAxis: {
type: 'category',
data: CandyData.map(a => a.Key),
},
series: [
{
name: 'Projet',
color: '#d9ed92',
type: 'bar',
data: CandyData.map(a => a.value),
}
]
};
option && myChart.setOption(option);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]