Translucent hole with center text in PieChartView The 2019 Stack Overflow Developer Survey Results Are InRemove all slice text from Pie Chart (ios-charts/mpandroidchart)Setting custom text on top of bar chartHow to stretch PieChartView the entire width and length of the parent ViewHow do i stop clipping of limit line text in ios-charts?Can a PieChart from iOS-charts be drawn from a different starting angle than top dead center?Add subtitle to center of pie-chart in swiftIOS Charts Labels not centered to data points. Charts LibraryHorizontal scrolling for Time-Line chart using LineChartViewiOS Charts zoom propertyGet rid of text 'DataSet' in pieChart legend
Have you ever entered Singapore using a different passport or name?
Why didn't the Event Horizon Telescope team mention Sagittarius A*?
How to type this arrow in math mode?
Are spiders unable to hurt humans, especially very small spiders?
Origin of "cooter" meaning "vagina"
Write faster on AT24C32
What is the meaning of Triage in Cybersec world?
Multiply Two Integer Polynomials
Can one be advised by a professor who is very far away?
Why did Acorn's A3000 have red function keys?
If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?
How to manage monthly salary
What does ひと匙 mean in this manga and has it been used colloquially?
What is the meaning of the verb "bear" in this context?
When should I buy a clipper card after flying to OAK?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
Why isn't the circumferential light around the M87 black hole's event horizon symmetric?
Can a flute soloist sit?
Does a dangling wire really electrocute me if I'm standing in water?
Aging parents with no investments
What is the most effective way of iterating a std::vector and why?
Is a "Democratic" Oligarchy-Style System Possible?
Did 3000BC Egyptians use meteoric iron weapons?
Button changing it's text & action. Good or terrible?
Translucent hole with center text in PieChartView
The 2019 Stack Overflow Developer Survey Results Are InRemove all slice text from Pie Chart (ios-charts/mpandroidchart)Setting custom text on top of bar chartHow to stretch PieChartView the entire width and length of the parent ViewHow do i stop clipping of limit line text in ios-charts?Can a PieChart from iOS-charts be drawn from a different starting angle than top dead center?Add subtitle to center of pie-chart in swiftIOS Charts Labels not centered to data points. Charts LibraryHorizontal scrolling for Time-Line chart using LineChartViewiOS Charts zoom propertyGet rid of text 'DataSet' in pieChart legend
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
How to create a translucent hole and show center text together?I want to draw an entire translucent hole instead of a part. At the same time, I need to draw the center text
Charts
I have tried to show translucent hole using follow
// draw the hole
chartView.drawHoleEnabled = true
chartView.holeRadiusPercent = 0
chartView.transparentCircleRadiusPercent = 0.382
chartView.transparentCircleColor = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 0.5)
// draw the center text
chartView.drawCenterTextEnabled = true
chartView.centerText = "SUM ofn3,909.00"
but when set the holeRadiusPercent is zero, the center text would not draw in the hole
how could i do it?
ios-charts
add a comment |
How to create a translucent hole and show center text together?I want to draw an entire translucent hole instead of a part. At the same time, I need to draw the center text
Charts
I have tried to show translucent hole using follow
// draw the hole
chartView.drawHoleEnabled = true
chartView.holeRadiusPercent = 0
chartView.transparentCircleRadiusPercent = 0.382
chartView.transparentCircleColor = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 0.5)
// draw the center text
chartView.drawCenterTextEnabled = true
chartView.centerText = "SUM ofn3,909.00"
but when set the holeRadiusPercent is zero, the center text would not draw in the hole
how could i do it?
ios-charts
how many dataset you are setting ?
– CodeChanger
Apr 2 at 5:00
This is not the point. I can draw the dataset correctly, but cant draw center text and translucent hole at the same time
– 张富城
Apr 8 at 2:19
Can you add more code related to your pia chart ? so that we can help you on that.
– CodeChanger
2 days ago
add a comment |
How to create a translucent hole and show center text together?I want to draw an entire translucent hole instead of a part. At the same time, I need to draw the center text
Charts
I have tried to show translucent hole using follow
// draw the hole
chartView.drawHoleEnabled = true
chartView.holeRadiusPercent = 0
chartView.transparentCircleRadiusPercent = 0.382
chartView.transparentCircleColor = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 0.5)
// draw the center text
chartView.drawCenterTextEnabled = true
chartView.centerText = "SUM ofn3,909.00"
but when set the holeRadiusPercent is zero, the center text would not draw in the hole
how could i do it?
ios-charts
How to create a translucent hole and show center text together?I want to draw an entire translucent hole instead of a part. At the same time, I need to draw the center text
Charts
I have tried to show translucent hole using follow
// draw the hole
chartView.drawHoleEnabled = true
chartView.holeRadiusPercent = 0
chartView.transparentCircleRadiusPercent = 0.382
chartView.transparentCircleColor = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 0.5)
// draw the center text
chartView.drawCenterTextEnabled = true
chartView.centerText = "SUM ofn3,909.00"
but when set the holeRadiusPercent is zero, the center text would not draw in the hole
how could i do it?
ios-charts
ios-charts
edited Apr 8 at 2:20
张富城
asked Mar 22 at 3:49
张富城张富城
314
314
how many dataset you are setting ?
– CodeChanger
Apr 2 at 5:00
This is not the point. I can draw the dataset correctly, but cant draw center text and translucent hole at the same time
– 张富城
Apr 8 at 2:19
Can you add more code related to your pia chart ? so that we can help you on that.
– CodeChanger
2 days ago
add a comment |
how many dataset you are setting ?
– CodeChanger
Apr 2 at 5:00
This is not the point. I can draw the dataset correctly, but cant draw center text and translucent hole at the same time
– 张富城
Apr 8 at 2:19
Can you add more code related to your pia chart ? so that we can help you on that.
– CodeChanger
2 days ago
how many dataset you are setting ?
– CodeChanger
Apr 2 at 5:00
how many dataset you are setting ?
– CodeChanger
Apr 2 at 5:00
This is not the point. I can draw the dataset correctly, but cant draw center text and translucent hole at the same time
– 张富城
Apr 8 at 2:19
This is not the point. I can draw the dataset correctly, but cant draw center text and translucent hole at the same time
– 张富城
Apr 8 at 2:19
Can you add more code related to your pia chart ? so that we can help you on that.
– CodeChanger
2 days ago
Can you add more code related to your pia chart ? so that we can help you on that.
– CodeChanger
2 days ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292630%2ftranslucent-hole-with-center-text-in-piechartview%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292630%2ftranslucent-hole-with-center-text-in-piechartview%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
how many dataset you are setting ?
– CodeChanger
Apr 2 at 5:00
This is not the point. I can draw the dataset correctly, but cant draw center text and translucent hole at the same time
– 张富城
Apr 8 at 2:19
Can you add more code related to your pia chart ? so that we can help you on that.
– CodeChanger
2 days ago