Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6144169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:36:49+00:00 2026-05-23T18:36:49+00:00

In my app i have some special scenario which i am not able to

  • 0

In my app i have some special scenario which i am not able to handle.
I am getting data from Xml which i am putting in two Arrays Label and numProjects.
Label contains labels and numProjects contains values for respective labels.

With these values i need to draw a pie chart with different colors for each label.
The way i am drawing the chart is i put the data with which i need to populate the chart in one array and in other array i put colors which i need for different sections.

So here’s the problem with code:

labelArray = [Active, pipeline, closed];
numProjectArray = [248, 438,200];// respective values as per the labelArray

Now while drawing i need this numProjectArray and also i need to create another array which has all the colors i want to color the separate sections. Also there should be a specific pair for each of label-value-color. For each label there should be a unique value which is stored in numProjectArray and for this label-value pair we need a specific color to draw the section. And also need to display this information on side of graph that which color denotes which label.

Please help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:36:50+00:00Added an answer on May 23, 2026 at 6:36 pm

    If you’re asking how to do this better, you should probably be thinking about something like an array of dictionaries, with one dictionary per label/value/color. Each dictionary would have keys like @”label”, @”numProjects”, and @”color”, and corresponding values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question. I have some app on facebook and getting this error Fatal
I have some settings in my app.config which I intend to be 'global' -
We have some special requirements: From our application, launch a ClickOnce application. It will
I have some test data with some special content (images, videos, etc.) in my
I'm familiar with Core Data basics and have done some dabbling, but have not
I have a DLL which takes care of custom drawing for some special glass
I have an iPhone app which submits user entered data to a SQL database.
Im going to write some android app, which will basically consists of two activities.
I have a coreData datamodel file which was running perfectly. Due to some special
in my app I have some text.setTextColor(Color.GRAY) . Now I would like to use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.