question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

labelLayout not works in production env (echarts v5.2)

See original GitHub issue

Version

5.2.0

Steps to reproduce

{
  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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
pissangcommented, Sep 10, 2021
import { LabelLayout } from 'echarts/features';
echarts.use([LabelLayout]);

@percy507 This solution should work.

1reaction
pissangcommented, Sep 10, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

draggable labelLayout option don't work with textBorderWidth
Version 5.0.2 Reproduction link https://jsfiddle.net/x7qg3jpL/ Steps to reproduce set label textBorderWidth property to a gratter value then ...
Read more >
Changelog - Apache ECharts
Smarter label layout in pie chart, especially when there are too many labels or insufficient space. And related issue: #6050. Provide more overflow ......
Read more >
gitlab-webservice not working while using helm install - charts
Not for production use. operator: enabled: false rollout: # Enables automatic pause for deployment rollout. This must be set to `true` to ...
Read more >
echarts - UNPKG
The CDN for echarts. ... node_modules/zrender/lib/core/env.js",". ... 'production') {\n if (storedLogs[str]) {\n // Not display duplicate message.
Read more >
org.apache.echarts.commits - 2021 September - 2,609 ... - MarkMail
[GitHub] [echarts] pissang edited a comment on issue #15701: labelLayout not works in production env (echarts v5.2) - GitBox.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found