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.

[Bug] Radar chart setting the overflow property of the indicator text has no effect

See original GitHub issue

Version

5.2.2

Link to Minimal Reproduction

https://codepen.io/jianyf-jianyf/pen/rNGbgoP

Steps to Reproduce

  1. create a radar chart with below option
option = {
  title: {
    text: 'Proportion of Browsers',
    subtext: 'Fake Data',
    top: 10,
    left: 10
  },
  tooltip: {
    trigger: 'item'
  },
  legend: {
    type: 'scroll',
    bottom: 10,
    data: (function () {
      var list = [];
      for (var i = 1; i <= 28; i++) {
        list.push(i + 2000 + '');
      }
      return list;
    })()
  },
  visualMap: {
    top: 'middle',
    right: 10,
    color: ['red', 'yellow'],
    calculable: true
  },
  radar: {
    indicator: [
      { text: 'IE8werwrerwrwerwerwerwerwrwerwer-', max: 400 },
      { text: 'IE9+werwrwerwerwerwerwerwerwerwerwerwerwe', max: 400 },
      { text: 'Safari', max: 400 },
      { text: 'Firefox', max: 400 },
      { text: 'Chrome', max: 400 }
    ],
    radius: '35%',
    center: ['50%', '50%'],
    width: 10,
    axisName: {
      show: true,
      overflow: 'truncate',
      ellipsis: '...',
    },
  },
  series: (function () {
    var series = [];
    for (var i = 1; i <= 28; i++) {
      series.push({
        type: 'radar',
        symbol: 'none',
        lineStyle: {
          width: 1
        },
        emphasis: {
          areaStyle: {
            color: 'rgba(0,250,0,0.3)'
          }
        },
        data: [
          {
            value: [
              (40 - i) * 10,
              (38 - i) * 4 + 60,
              i * 5 + 10,
              i * 9,
              (i * i) / 2
            ],
            name: i + 2000 + ''
          }
        ]
      });
    }
    return series;
  })()
};

Current Behavior

You can see that the indicator text is not truncated image

Expected Behavior

Indicator text is truncated normally like this image image

Environment

- OS: mac 12.1
- Browser: chrome 95.0.4638.69(正式版本) (x86_64)

Any additional comments?

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
MichealF26commented, Oct 17, 2022

The workaround I’ve found, I’ve posted in issue https://github.com/apache/echarts/issues/13551#issuecomment-1280431622

1reaction
gagarinecommented, Sep 26, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Newest 'radar-chart' Questions - Stack Overflow
I'm using chart js 3 to draw a radar graph . I'm getting labels text from backend . I'm trying to make labels...
Read more >
Changelog - Apache ECharts
[Fix] Fix overflow symbol not display when clip is set false in line series. ... which enables setting different color for each indicator...
Read more >
fl_chart | Flutter Package - Pub.dev
A powerful Flutter chart library, currently supporting Line Chart, Bar Chart and Pie Chart.
Read more >
IBM Cognos Analytics - Reporting Version 11.1 : User Guide
Range Indicator Charts. ... Set the Position of the First Slice in a Pie Chart. ... Overflow Error Occurs When a Value in...
Read more >
franklin.chm.colostate.edu/ebooks/widgets/populati...
Text function has been removed o The Radar chart option ... common method o The default overflow: CSS setting for tooltips is now...
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