Results 1 to 4 of 4

Thread: Total text in the center of a donut

  1. #1
    Touch Premium Member
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    31

    Default Total text in the center of a donut

    Is there a way to create a text-sprite in the middle of a donut chart that shows the total?
    My donut-chart using flex and I want to increase the font-size if this chart getting bigger.

    DSA-Polar-Donut-Chart.png

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Here's a thread that might help:
    https://www.sencha.com/forum/showthread.php?268163

  3. #3
    Touch Premium Member
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    31

    Default

    Thank you!

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    110
    Answers
    2

    Default

    Including of this following config mandatory to align text in donut exact center.

    textAlign: 'center',
    textBaseline: 'middle'
    Dinesh GK

Similar Threads

  1. Replies: 7
    Last Post: 15 Oct 2015, 4:42 AM
  2. Donut chart with percentage in the center
    By henryfx in forum Ext: Discussion
    Replies: 4
    Last Post: 3 Aug 2013, 3:55 PM
  3. Show text in donut chat's central space.
    By lasy in forum Ext: Q&A
    Replies: 1
    Last Post: 21 Nov 2012, 3:53 AM
  4. how to add a text sprite to sencha donut chart
    By raman4984 in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 19 Jun 2012, 4:38 AM
  5. Text + Image inside the donut Chart
    By NCN in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 10 Jun 2012, 5:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •