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/09/09 09:56:19 UTC

[GitHub] [echarts] percy507 opened a new issue #15701: labelLayout not works in production env (echarts v5.2)

percy507 opened a new issue #15701:
URL: https://github.com/apache/echarts/issues/15701


   ### Version
   5.2.0
   
   ### Steps to reproduce
   ```js
   {
     type: 'pie',
     radius: ['20%', '60%'],
     avoidLabelOverlap: false,
     labelLayout() {
       return {
         x: 200,
         y: 50,
         align: 'left',
       };
     },
     ...
   }
   ```
   
   When use ECharts v5.2, labelLayout works in local Env, but not works in production.
   
   Then i change the version to v5.1.1, labelLayout works in local and production Env both.
   
   ### What is expected?
    On Echarts v5.2, labelLayout works in production.
   
   ### What is actually happening?
   not works
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


-- 
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 edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916616432


   ```ts
   import { LabelLayout } from 'echarts/features';
   echarts.use([LabelLayout]);
   ```
   
   @percy507 This solution should work.
   
   ![image](https://user-images.githubusercontent.com/841551/132798817-646c3f52-116e-4361-9459-977bb3d79ca9.png)
   


-- 
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] percy507 commented on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
percy507 commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916620824


   @pissang 
   Thanks, it works.πŸ‘
   I suggest add this to echarts document.
   
   Add here.
   https://echarts.apache.org/handbook/zh/basics/import#%E5%9C%A8-typescript-%E4%B8%AD%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5
   


-- 
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 edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916608957


   I'm not sure but seems the behavior is the same when I try these two commands(same as your screenshot)
   ```shell
   npm run dev         # local dev env
   npm run preview     # local production env (problems happens here)
   ```
   You can try removing all `node_modules` and install again. If it still doesn't solve your issue. Try to include the `LabelLayout` module manually.
   
   ```ts
   import { LabelLayout } from 'echarts/features';
   echarts.use([LabelLayout]);
   ```


-- 
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] percy507 commented on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
percy507 commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916612213


   @pissang 
   
   Already tried removing `node_modules`, still not works. 
   It seems weird. 
   If your side is ok, then i will close this issue. If someone meets same problem, then we discuss it again.
   Now i will use echarts v5.1.1 instead of v5.2.
   
   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


[GitHub] [echarts] pissang edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916608957


   I'm not sure but seems the behavior is the same when I try these two commands
   ```shell
   npm run dev         # local dev env
   npm run preview     # local production env (problems happens here)
   ```
   You can try removing all `node_modules` and install again. If it still doesn't solve your issue. Try to include the `LabelLayout` module manually.
   
   ```ts
   import { LabelLayout } from 'echarts/features';
   echarts.use([LabelLayout]);
   ```


-- 
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] removed a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] removed a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916503269


   @percy507 Please provide a minimum reproducible 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.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


-- 
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 edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916608957


   I'm not sure but seems the behavior is the same when I try these two commands
   ```shell
   npm run dev         # local dev env
   npm run preview     # local production env (problems happens here)
   ```
   You can try removing all `node_modules` and install again. If it still doesn't solve your issue. Try to install the label layout module manually.
   
   ```ts
   import { LabelLayout } from 'echarts/features';
   echarts.use([LabelLayout]);
   ```


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916614235


   @percy507 Doubled checked again and found the `package.json` is still using echarts@5.1.1. Updated to 5.2.0 can reproduce this bug.


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-915939699


   Hi! We've received your issue and please be patient to get responded. πŸŽ‰
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe to our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍡


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916608957


   I'm not sure but seems the behavior is the same when I try
   ```ts
   npm run dev         # local dev env
   npm run preview     # local production env (problems happens here)
   ```
   You can try removing all `node_modules` and install again.
   
   


-- 
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] percy507 closed issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
percy507 closed issue #15701:
URL: https://github.com/apache/echarts/issues/15701


   


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916622338


   @percy507 Thanks for the suggestion. Will improve document and examples.


-- 
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 edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916608957


   I'm not sure but seems the behavior is the same when I try these two commands
   ```ts
   npm run dev         # local dev env
   npm run preview     # local production env (problems happens here)
   ```
   You can try removing all `node_modules` and install again.
   
   


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916506007


   @percy507 Hi, do you mind proving your project to us? It will be great if it's reduced to a minimal reproducible demo.


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916503269


   @percy507 Please provide a minimum reproducible 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.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.


-- 
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] percy507 commented on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
percy507 commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916615695


   Yes, use v5.2 cause weird problem in production mode, so i change the version to v5.1.1.πŸ˜‚
   


-- 
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] percy507 closed issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
percy507 closed issue #15701:
URL: https://github.com/apache/echarts/issues/15701


   


-- 
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 #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916616432


   ```ts
   import { LabelLayout } from 'echarts/features';
   echarts.use([LabelLayout]);
   ```
   
   @percy507 This solution should work


-- 
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] percy507 commented on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
percy507 commented on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916578916


   @pissang Sorry, it seems hard to provide a mini demo on codepen or codesandbox. Because problem happens in the production env.
   
   But there is a way. You can `git clone` my project to local and test it.
   
   ```bash
   git clone https://github.com/percy507/vite-react-bigScreen.git
   
   # then change echarts version to v5.2.0 in package.json
   
   npm i -d
   npm run dev         # local dev env
   npm run preview     # local production env (problems happens here)
   ```
   
   ![image](https://user-images.githubusercontent.com/18365078/132788324-2d2aab7a-0341-498e-afca-58f2ea088aaa.png)
   


-- 
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 edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2)

Posted by GitBox <gi...@apache.org>.
pissang edited a comment on issue #15701:
URL: https://github.com/apache/echarts/issues/15701#issuecomment-916616432






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