You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "rlaghdtlr012 (via GitHub)" <gi...@apache.org> on 2023/12/20 06:34:45 UTC

[I] [Bug] XAXisComponentOption boundaryGap Type doesn't match with the official echarts webSite explanation. [echarts]

rlaghdtlr012 opened a new issue, #19423:
URL: https://github.com/apache/echarts/issues/19423

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   vscode
   
   ### Steps to Reproduce
   
   While specifying types in TypeScript, I encountered a difference between the types specified in the echarts.d.ts file and the descriptions in the official documentation. I have a few questions:
   
   1. In the official documentation, the type for xAxis.boundaryGap is specified as an array and a boolean.
   After reviewing the documentation, I wrote the following code, but TypeScript throws a type error:
   `
   const` axisDateTime: eCharts.XAXisComponentOption = {
       type: 'value',
       boundaryGap: false,
   }
   // Type error: The type of the 'boundaryGap' property is not compatible.
   ``
   
   2. Upon checking line 2412 in the echarts.d.ts file, I noticed that the type of boundaryGap in NumericAxisBaseOptionCommon is specified as boundaryGap?: [number | string, number | string];.
   
   3. After modifying the code to 
   boundaryGap?: boolean | [number | string, number | string];
   the type error disappeared.
   
   Is there an intentional difference between the content of the d.ts file and the official documentation, or could this be a bug? I appreciate your response.
   
   ### Current Behavior
   
    I encountered a difference between the types specified in the echarts.d.ts file and the descriptions in the official documentation.
   
   ### Expected Behavior
   
   I think echarts.d.ts code should be "boundaryGap?: boolean | [number | string, number | string];" not "boundaryGap?: boolean | [number | string, number | string]" at  NumericAxisBaseOptionCommon type
   
   ### Environment
   
   ```markdown
   - OS: win 10
   - Browser: Chrome 120.0.6099.72
   - Framework: Next@9
   - language: Typescript
   ```
   
   
   ### 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


Re: [I] [Bug] XAXisComponentOption boundaryGap Type doesn't match with the official echarts webSite explanation. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19423: [Bug] XAXisComponentOption boundaryGap Type doesn't match with the official echarts webSite explanation.
URL: https://github.com/apache/echarts/issues/19423


-- 
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


Re: [I] [Bug] XAXisComponentOption boundaryGap Type doesn't match with the official echarts webSite explanation. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19423:
URL: https://github.com/apache/echarts/issues/19423#issuecomment-3676620670

   This issue has been automatically marked as stale because it did not have 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 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


Re: [I] [Bug] XAXisComponentOption boundaryGap Type doesn't match with the official echarts webSite explanation. [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19423:
URL: https://github.com/apache/echarts/issues/19423#issuecomment-3694224352

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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