Giter VIP home page Giter VIP logo

Comments (11)

zhiqingchen avatar zhiqingchen commented on May 14, 2024

尝试

  1. 使用svgchart
  2. 给label等设置系统支持的字体

from react-native-echarts.

kaziii avatar kaziii commented on May 14, 2024

使用svgchart 显示正常,但是过渡动画卡顿
设备 小米10s

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 14, 2024

性能上,skia更好点,通过设置字体也可以解决中文问题

from react-native-echarts.

zhangyongz avatar zhangyongz commented on May 14, 2024

设置了字体,legend的中文显示了,tooltip里还是不显示 @zhiqingchen

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 14, 2024

@zhangyongz 提供下具体配置和环境信息

from react-native-echarts.

zhangyongz avatar zhangyongz commented on May 14, 2024

option = { backgroundColor: '#fff', legend: { show: true, icon: 'roundRect' }, tooltip: { trigger: 'axis', backgroundColor: 'rgba(0,0,0,0.65)', textStyle: { color: '#fff', fontSize: 12, fontFamily: 'PingFang SC' }, axisPointer: { type: 'line', lineStyle: { color: '#E6262C4D', type: 'dashed' }, width: 2 } }, xAxis: { type: 'category', data: [ '05-02', '05-03', '05-04', '05-05', '05-06', '05-07', '05-08' ] }, yAxis: [ { show: true }, false ], series: [ { show: true, animation: true, type: 'line', name: '收件量', data: [ 1022.92, 997.24, 925.7, 991.55, 1040.35, 514.87, 49 ] }, { show: true, animation: true, type: 'line', name: '均量', data: [ 791.66, 791.66, 791.66, 791.66, 791.66, 791.66, 791.66 ] } ], textStyle: { fontFamily: 'PingFang SC' } }

dependencies: { react-native: "0.70.6", echarts: "5.4.2", @wuba/react-native-echarts: "1.0.0", @shopify/react-native-skia: "0.1.188" }
@zhiqingchen

from react-native-echarts.

iambool avatar iambool commented on May 14, 2024

option = { backgroundColor: '#fff', legend: { show: true, icon: 'roundRect' }, tooltip: { trigger: 'axis', backgroundColor: 'rgba(0,0,0,0.65)', textStyle: { color: '#fff', fontSize: 12, fontFamily: 'PingFang SC' }, axisPointer: { type: 'line', lineStyle: { color: '#E6262C4D', type: 'dashed' }, width: 2 } }, xAxis: { type: 'category', data: [ '05-02', '05-03', '05-04', '05-05', '05-06', '05-07', '05-08' ] }, yAxis: [ { show: true }, false ], series: [ { show: true, animation: true, type: 'line', name: '收件量', data: [ 1022.92, 997.24, 925.7, 991.55, 1040.35, 514.87, 49 ] }, { show: true, animation: true, type: 'line', name: '均量', data: [ 791.66, 791.66, 791.66, 791.66, 791.66, 791.66, 791.66 ] } ], textStyle: { fontFamily: 'PingFang SC' } }

dependencies: { react-native: "0.70.6", echarts: "5.4.2", @wuba/react-native-echarts: "1.0.0", @shopify/react-native-skia: "0.1.188" } @zhiqingchen

也是小米10吗,还是别的机型?

from react-native-echarts.

zhangyongz avatar zhangyongz commented on May 14, 2024

ios @iambool

from react-native-echarts.

iambool avatar iambool commented on May 14, 2024

ios @iambool

@zhiqingchen ios可复现

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 14, 2024

image

#15

跟这个问题类似,需要再研究看看

from react-native-echarts.

Error4O4-NotFound avatar Error4O4-NotFound commented on May 14, 2024

设置了字体,legend的中文显示了,tooltip里还是不显示 @zhiqingchen

image
使用了SkiaCharts,tooltip中不显示中文的可以将这个文件的这几段注释打开,DEFAULT_FONT_FAMILY改为PingFang SC
一个临时的解决方法

from react-native-echarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.