/
githubmirror
/
echarts
Обзор
Документация
Войти
/
githubmirror
/
echarts
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/pie-labelLine-smooth.html
90 строк
3 KB
fanwww
Merge pull request #21425 from fanwww/fix-pie-labelLine-smooth
15 дек 2025, 15:55
Не верифицирован
15 дек 2025, 15:55
c237496
Код
Авторство
О чём код?
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <html> <head> <meta charset="utf-8"> <script src="lib/simpleRequire.js"></script> <script src="lib/config.js"></script> <script src="data/pie-texture.js"></script> <script src="lib/dat.gui.min.js"></script> <link rel="stylesheet" href="lib/reset.css" /> <script src="lib/testHelper.js"></script> </head> <body> <style> </style> <div id="main"></div> <script> require([ 'echarts' ], function (echarts) { let labelLine = { smooth: false, length:40 } var option = { series: [ { type: 'pie', selectedMode: 'single', selectedOffset: 30, radius: [50, 100], hoverAnimation: false, animation: false, data: [ { value: 0, name: 'Direct Access' }, { value: 310, name: 'Email Marketing' }, { value: 234, name: 'Website Ads' }, { value: 135, name: 'Video Ads' }, { value: 1548, name: 'Search Engine' } ], labelLine } ] }; function update() { chart.setOption(option); } var gui = new dat.GUI(); gui.add(labelLine, 'smooth') .onChange(update) gui.add(labelLine, 'length') .onChange(update) var chart = testHelper.create(echarts, 'main', { title: [ "Changing the smooth attribute from true to false in the pie chart labelLine configuration item does not take effect", 'See also https://github.com/apache/echarts/issues/21418' ], option }); }); </script> </body> </html>