apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.66k stars 19.61k forks source link

[Bug] 我在Option中设置了textStyle的字体大小,但是xAxis、yAxis的坐标轴刻度字体大小不生效,坐标轴的name也会生效样式 #19541

Open wlcomeforyou opened 10 months ago

wlcomeforyou commented 10 months ago

Version

5.4.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeAoWswFMAeYDKYAngDaYBcq66AZjPhAF7mwBMADGrAL4A0n2AQWwQAzmWSd0REMwDkAYwCGWAObAAToVl8qsACbLF4gNqyAsjG2xZAFQCumK7IDqmPU5sALO04Bi6iCc8ZSC7aFkAXU5eTkIhUXFKKmk5ADdFYgdtSVhoRQBbOUBpW0BV6NlonVgRTADMMVhjHKTdAzAjBoBGAFY2HlYAZl7WFgAWPpYOgA4-jv6umZGAdnGANjYIyt0U8VliCGhHHK5OKK4AbiA

Steps to Reproduce

设置了全局字体样式textStyle的字体大小,但是坐标的刻度字体大小没有生效

Current Behavior

设置了全局字体样式textStyle的字体大小,但是坐标的刻度字体大小没有生效

Expected Behavior

设置了全局字体样式textStyle的字体大小,会对图形中字体都生效

Environment

- OS:MacOs
- Browser: 120.0.6099.234(正式版本) (arm64)
- Framework: Vue@3

Any additional comments?

No response

echarts-bot[bot] commented 10 months ago

@wlcomeforyou It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** [Bug] I set the font size of textStyle in Option, but the font size of the axis scale of xAxis and yAxis does not take effect, and the name of the axis will also take effect
helgasoft commented 10 months ago

The font size of the global font style textStyle is set

There is no 'global' textStyle in [API}(https://echarts.apache.org/en/option.html), even though it's a valid idea for a new Feature. See axisLabel.fontSize. 📌 please close issue if problem solved.

MatthiasMert commented 9 months ago

To my surprise there actually is a global textStyle, which seems to work for the axisName but not the axisLabels in the given example.