Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Uneven X-Axis Label Spacing #302

Description

@pixatra5163

I integrated the line graph and its working great in Objective-C, but the problem I'm having is with spacing on the xAxis. If you see the attached screenshot, the first label and second one, and second last and last one are not evenly spaced.

Below is the function which I use to setup the graph:

- (void)setupGraphs {
      mindfulGraph.enableXAxisLabel = YES;
      mindfulGraph.alwaysDisplayDots = YES;
      mindfulGraph.colorXaxisLabel = [UIColor lightGrayColor];
      mindfulGraph.colorBackgroundXaxis = [UIColor clearColor];
      mindfulGraph.enableYAxisLabel = YES;
      mindfulGraph.colorYaxisLabel = [UIColor lightGrayColor];
      mindfulGraph.colorBackgroundYaxis = [UIColor clearColor];
      mindfulGraph.enableReferenceYAxisLines = YES;
      mindfulGraph.colorReferenceLines = [UIColor lightGrayColor];
      mindfulGraph.enableLeftReferenceAxisFrameLine = YES;
      mindfulGraph.enableReferenceAxisFrame = YES;

      mindfulGraph.enablePopUpReport = YES;
}

0-neu-d2-47c91b1ae3cd8513e6bb9c835e1a9580

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions