You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "KhoaLee (via GitHub)" <gi...@apache.org> on 2025/02/17 06:51:46 UTC

Re: [I] [Bug] 使用Vue3渲染雷达图,控制台出现The ticks may be not readable [echarts]

KhoaLee commented on issue #17763:
URL: https://github.com/apache/echarts/issues/17763#issuecomment-2662206567

   > I'm facing the same issue when using a radar component with `echarts-for-react`.
   > 
   > Is this issue still a bug or does anyone have a workaround? (I do want to remove either `min` or `max` from my config options)
   > 
   > # Version
   > echarts 5.5.1
   > 
   > # Library
   > echarts-for-react 3.0.2
   > 
   > # Steps to reproduce
   > import ReactECharts from "echarts-for-react";
   > 
   > const OPTION = {
   >   animation: false,
   >   legend: {
   >     show: false,
   >   },
   >   radar: {
   >     indicator: [
   >       { name: "A", min: 0, max: 1 },
   >       { name: "B", min: 0, max: 1 },
   >       { name: "C", min: 0, max: 1 },
   >     ],
   >     splitNumber: 3,
   >   },
   >   series: {
   >     data: [{ value: [0.8, 0.3, 0.5], name: "Dataset" }],
   >     type: "radar",
   >   },
   >   tooltip: {
   >     show: true,
   >   },
   > };
   > 
   > export default function Radar() {
   >   return (
   >     <div className="radar-container">
   >       <ReactECharts
   >         option={OPTION}
   >         style={{ width: "100%", height: "100%", maxHeight: "320px" }}
   >       />
   >     </div>
   >   );
   > }
   > # Environment
   > * OS: Windows 10
   > * Framework: React 18.3.1
   > * Browsers: Firefox v.128.4.0esr (64-bit), Chrome v.131.0.6778.86 (64-bit)
   > 
   > # Current behavior
   > Console warning:
   > 
   > Warning
   > 
   > [ECharts] The ticks may be not readable when set min: 0, max: 1 and alignTicks: true
   > 
   > # Expected behavior
   > No console warning
   
   Remove the min and max in your indicator will fix the 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