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

  • SEARCH
  • Home
  • 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 9047557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:56:23+00:00 2026-06-16T11:56:23+00:00

I am having a very bizarre situation with barPlot. Firstly, even when the data

  • 0

I am having a very bizarre situation with barPlot. Firstly, even when the data is null, it gives me two large barplot at indexes 1 and 2, which i can’t work out where they are coming from?

enter image description here

And secondly, when I then call the reloadDataIfNeeded/reloadData method, it then seems to place the bars in the middle (it appears identically each time)

enter image description here

Ill post the code below, but it seems odd that when i don’t call reload data, it gives me bars already on the barplot. – it never calls:

 -(NSNumber *)numberForPlot:(CPTPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index {

it just places bars on the barplot. When i reload the data it calls that method, and despite the indexes being correct, it still misplaces the bars?

  • 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-06-16T11:56:25+00:00Added an answer on June 16, 2026 at 11:56 am

    To solve this problem I used:

     switch ( fieldEnum ) {            
    case CPTBarPlotFieldBarLocation: return [NSNumber numberWithUnsignedInteger:index]; break; 
    case CPTBarPlotFieldBarTip: 
    if ([plot.identifier isEqual:_nameComingThrough]) { 
    return [_averageDataValuesMultiple objectAtIndex:index]; } 
    else if ([plot.identifier isEqual:PAR]) { 
    
    return [_averageOfPar objectAtIndex:index]; } 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're having a bizarre problem with Indy10 where two large strings (a few hundred
I'm having the most bizarre problem which I'm not even close to figuring out.
i am having a very weird situation in my code which i dont understand
I having a very weird problem for my asp project. My project can run
I am having a very large string, and when I read it in Java,
I've been having a very bizarre issue with the jQuery Confirm code on my
I am having a very large xml. It has fields Like <SegrigatedQualification> <EducationSplit> <University><![CDATA[G.
CakePHP has an annoying habit of having very deep, multidimensional arrays when pulling data
I'm having a very weird problem that for the life of me I can
I am having a very diifult situation here...Actually I am developing a MFC project.In

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.