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 2022/07/15 03:34:43 UTC
[GitHub] [echarts] VamoBao opened a new issue, #17384: [Bug] Type error in series line option, the scale option in emphasis
VamoBao opened a new issue, #17384:
URL: https://github.com/apache/echarts/issues/17384
### Version
5.3.2
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
create chart with `echarts.init()`,and `setOption` to set the option,here is the part of my option,and I assign a `number` for scale, the typescript report an error which is type 'number' is not assignable to type 'boolean',but the doc show `number` has been supported since v5.3.2
```typescript
const option:EChartsOption = {
series: [
{
name: mainTitle,
type: 'line',
yAxisIndex: 0,
data: mainData,
emphasis:{
scale:1.5
},
areaStyle: {
color: {
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0, color: 'rgba(0, 100, 255, .2)',
}, {
offset: 1, color: 'rgba(255, 255, 255, .2)',
}],
},
},
},
],
};
```
### Current Behavior
assign a `number` for scale, report an error
### Expected Behavior
correct type detection
### Environment
```markdown
- OS:win10
- Browser: Chrome 103.0.5060.114
- Framework:React@17
```
### 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.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] plainheart commented on issue #17384: [Bug] Type error in series line option, the scale option in emphasis
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #17384:
URL: https://github.com/apache/echarts/issues/17384#issuecomment-1185194992
Similar to https://github.com/apache/echarts/issues/17072#issuecomment-1173256689. This feature was introduced in #16688 but the type definition was ignored. You are welcome to open a PR to fix it.
--
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] plainheart closed issue #17384: [Bug] Type error in series line option, the scale option in emphasis
Posted by GitBox <gi...@apache.org>.
plainheart closed issue #17384: [Bug] Type error in series line option, the scale option in emphasis
URL: https://github.com/apache/echarts/issues/17384
--
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