BEMSimpleLineGraph v4.1.1 Release Notes

Release Date: 2016-01-24 // about 8 years ago
  • Bug Fixes

    • ๐Ÿ›  Fixes #220 in accordance with Apple Documentation. Removed calls to closePath on BEMLine to prevent the lines being retraced (94f8915)
    • ๐Ÿ›  Fixes #233 by checking for data sources with less than two data points and drawing an appropriate line and line fill (aa51b11)

    Project Changes

    • โž• Added a great deal of in-depth XCTests (295b9cb)

Previous changes from v4.1

  • Improvements

    • Bezier Algorithm Improvements. This modifies the algorithm used to determine the graph's line. The old algorithm, although generating prettier graphs, displayed inaccurate information; line arcs would go above and below min/max values, and a graph that had two data points of the same value in a row would show invalid arcs between the two data points (always upward) giving the user an inaccurate representation of the data. Thanks to @tres for this wonderful improvement (9311f8d).
    • ๐Ÿ‘ Allow gesture recognizer to function simultaneously with other gesture recognizers. (8c25436).

    ๐Ÿ†• New Features

    • ๐Ÿ†• New reference line width property (referenceLineWidth) allows you to control the width of the reference lines independently from the graph line. (0bb60c9)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixes #135, an issue where bezier curve lines were not confined to the graph's boundaries (despite the fill gradients and colors being confined). (17fe25f)
    • ๐Ÿ›  Fixes an issue where permanent pop up labels are duplicated when layoutSubview is called (i.e. during interface orientation changes). (929df84)
    • ๐Ÿ›  Fixes a crash that may have occurred when attempting to perform calculations on a graph with no data, or before data is loaded. (e2a5167)
    • ๐Ÿ›  Fixes a static analyzer warning about uninitialized struct. (af70a96)

    โšก๏ธ GitHub Repo Updates

    • โšก๏ธ Readme Updates
      • Fixes quotation mark for Swift bridging header example (978b504)

    Public to Private API Transition

    • โœ‚ Removed previously public properties on BEMLine and made them private. These properties are not marked as deprecated because they should not have been public in the first-place, and any public use of them would have unintentional consequences. The following properties are no longer available publicly:
      • @property (assign, nonatomic) CGPoint P0
      • @property (assign, nonatomic) CGPoint P1
      • @property (assign, nonatomic) CGPoint P2
      • @property (assign, nonatomic) CGPoint P3