You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/12/06 08:30:49 UTC
[GitHub] [echarts] suzhenghui-sky opened a new issue #16175: [Bug] dataIndex
suzhenghui-sky opened a new issue #16175:
URL: https://github.com/apache/echarts/issues/16175
### Version
5.2.0
### Link to minimal reproduction
_No response_
### Steps To Reproduce
dispatchAction({
type: 'select',
// 用 index 或 id 或 name 来指定系列。
// 可以使用数组指定多个系列。
seriesIndex?: number | number[],
seriesId?: string | string[],
seriesName?: string | string[],
// 数据项的 index,如果不指定也可以通过 name 属性根据名称指定数据项
dataIndex?: number | number[],
// 可选,数据项名称,在有 dataIndex 的时候忽略
name?: string | string[],
})
dataIndex 使用数组,[0,1],直接不生效,
### Current Behavior
series: [
{
data: airData,
geoIndex: 0, // 将空气质量的数据和第0个geo配置关联在一起
type: 'map'
},
{
data: scatterData, // 配置散点的坐标数据
type: 'effectScatter',
coordinateSystem: 'geo', // 指明散点使用的坐标系统 geo的坐标系统
rippleEffect: {
scale: 4 // 设置涟漪动画的缩放比例
}
}
],
window.setInterval(() => {
console.log('weiwei')
mCharts.dispatchAction({
type: 'showTip',
seriesIndex: [0, 1],
dataIndex: index
});
oldIndex = index
index++
if (index >= airData.length) {
index = 0
}
}, 2000)
})
我有两个系列,使用dataIndex: [0,1],应该是显示两个才对,结果一个都没有显示
### Expected Behavior
series: [
{
data: airData,
geoIndex: 0, // 将空气质量的数据和第0个geo配置关联在一起
type: 'map'
},
{
data: scatterData, // 配置散点的坐标数据
type: 'effectScatter',
coordinateSystem: 'geo', // 指明散点使用的坐标系统 geo的坐标系统
rippleEffect: {
scale: 4 // 设置涟漪动画的缩放比例
}
}
],
window.setInterval(() => {
console.log('weiwei')
mCharts.dispatchAction({
type: 'showTip',
seriesIndex: [0, 1],
dataIndex: index
});
oldIndex = index
index++
if (index >= airData.length) {
index = 0
}
}, 2000)
})
我有两个系列,使用dataIndex: [0,1],应该是显示两个才对。
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pissang commented on issue #16175: [Bug] dataIndex
Posted by GitBox <gi...@apache.org>.
pissang commented on issue #16175:
URL: https://github.com/apache/echarts/issues/16175#issuecomment-987514815
Please complete the title and update the issue with right format or we will close this issue
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] pissang closed issue #16175: [Bug] dataIndex
Posted by GitBox <gi...@apache.org>.
pissang closed issue #16175:
URL: https://github.com/apache/echarts/issues/16175
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #16175: [Bug] dataIndex
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16175:
URL: https://github.com/apache/echarts/issues/16175#issuecomment-986547996
@suzhenghui-sky It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**BODY**
### Version
5.2.0
### Link to minimal reproduction
_No response_
### Steps To Reproduce
dispatchAction({
type:'select',
// Use index or id or name to specify the series.
// You can use an array to specify multiple series.
seriesIndex?: number | number[],
seriesId?: string | string[],
seriesName?: string | string[],
// The index of the data item, if not specified, you can also specify the data item by name through the name attribute
dataIndex?: number | number[],
// Optional, data item name, ignored when there is dataIndex
name?: string | string[],
})
dataIndex uses an array, [0,1], which does not take effect directly.
### Current Behavior
series: [
{
data: airData,
geoIndex: 0, // Associate air quality data with the 0th geo configuration
type:'map'
},
{
data: scatterData, // Configure the coordinate data of the scattered points
type:'effectScatter',
coordinateSystem:'geo', // Specify the coordinate system used by the scattered point geo coordinate system
rippleEffect: {
scale: 4 // Set the scale of the ripple animation
}
}
],
window.setInterval(() => {
console.log('weiwei')
mCharts.dispatchAction({
type:'showTip',
seriesIndex: [0, 1],
dataIndex: index
});
oldIndex = index
index++
if (index >= airData.length) {
index = 0
}
}, 2000)
})
I have two series, using dataIndex: [0,1], it should show two, but none of them are displayed.
### Expected Behavior
series: [
{
data: airData,
geoIndex: 0, // Associate air quality data with the 0th geo configuration
type:'map'
},
{
data: scatterData, // Configure the coordinate data of the scattered points
type:'effectScatter',
coordinateSystem:'geo', // Specify the coordinate system used by the scattered point geo coordinate system
rippleEffect: {
scale: 4 // Set the scale of the ripple animation
}
}
],
window.setInterval(() => {
console.log('weiwei')
mCharts.dispatchAction({
type:'showTip',
seriesIndex: [0, 1],
dataIndex: index
});
oldIndex = index
index++
if (index >= airData.length) {
index = 0
}
}, 2000)
})
I have two series, using dataIndex: [0,1], it should show two.
### Environment
```markdown
-OS:
-Browser:
-Framework:
```
### Any additional comments?
_No response_
</details>
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] echarts-bot[bot] commented on issue #16175: [Bug] dataIndex
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16175:
URL: https://github.com/apache/echarts/issues/16175#issuecomment-993121351
@suzhenghui-sky Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.
--
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: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org