search

Home  >  Q&A  >  body text

javascript - How to adapt echarts fonts to mobile devices with different resolutions


#echarts How to adapt fonts to mobile devices with different resolutions? Just adjust it at one resolution, but at other resolutions the overall font will become smaller and appear inappropriate. How can I make the font fit? Or can this fontSize be obtained? Why doesn't writing it as a percentage work? Urgent request, please help me with some familiarity.

过去多啦不再A梦过去多啦不再A梦2744 days ago644

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-05-19 10:11:28

    The fonts in echarts are numbers. If set to 100%, strings are useless.
    There is a way to dynamically set the fontSize at different resolutions;

    reply
    0
  • PHP中文网

    PHP中文网2017-05-19 10:11:28

    Have you set 『<meta name="viewport" content="width=device-width, initial-scale=1" />』

    reply
    0
  • Cancelreply