You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/18 09:40:06 UTC

[GitHub] [echarts] TheLostDory opened a new issue #14500: How to make echarts title responsive! HELP PLZ

TheLostDory opened a new issue #14500:
URL: https://github.com/apache/echarts/issues/14500


   ### Version
   5.0.2
   
   ### Steps to reproduce
   Hello Guys,
   I want to make echarts title responsive.
   I exactly want to reduce the size of the font when i am on smaller screen.
   How can I do it?
   
   ### What is expected?
   every font on the chart to reduce the size with the screen
   
   ### What is actually happening?
   it is not responsive
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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.

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


[GitHub] [echarts] echarts-bot[bot] commented on issue #14500: How to make echarts title responsive! HELP PLZ

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #14500:
URL: https://github.com/apache/echarts/issues/14500#issuecomment-801776172


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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.

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


[GitHub] [echarts] drasgardian commented on issue #14500: How to make echarts title responsive! HELP PLZ

Posted by GitBox <gi...@apache.org>.
drasgardian commented on issue #14500:
URL: https://github.com/apache/echarts/issues/14500#issuecomment-813856021


   I managed to get the titles responsive by adding this to the chart definition:
   
   ```
       media: [
           {
               query: {
                   minWidth: 400,
               },
               option: {
                   title: {
                       textStyle: {
                           fontSize: 20,
                           width: '380'
                       },
                       subtextStyle: {
                           fontSize: 10,
                       },
                   }
               }
           },
           {
               query: {
                   minWidth: 800,
               },
               option: {
                   title: {
                       textStyle: {
                           fontSize: 25,
                           width: '700'
                       },
                       subtextStyle: {
                           fontSize: 12,
                       },
                   }
               }
           },
       ],
   ```
   
   See documentation here: https://echarts.apache.org/en/tutorial.html#Responsive%20Mobile-End


-- 
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.

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