Skip to content

Releases: ChartsOrg/Charts

Bug Fixes and Improvements!

04 Nov 04:13
Compare
Choose a tag to compare

Disclaimer: This is a legacy release to support Swift 2.3 for Charts v2.2.5. You are encouraged to move to Swift 3.0 and Charts 3.0

Updates:

  • NSTouch extension for locationInView made the compiler error because it clashes with objc selector. Since it was not used in the library code it was removed.
  • Fix the image type of NSUIImagePNGRepresentation to be png instead of jpeg

New major release

19 Oct 15:56
Compare
Choose a tag to compare

This is a major release, with a few breaking changes. So please pay attention.

Updates:

  • x-indexes are dead. Intoducing: x-values. Each entry now has an x and a y.
  • Pie/radar charts do not have a concept of X index anymore
  • Unified XAxis/YAxis features and experience.
  • Unified formatter interfaces for axes.
  • New formatter for y values, not inheriting from NSNumberFormatter anymore, to have dataSet and viewport information to take better formatting decisions.
  • Major refactoring of the Highlight mechanism.
  • Refactored marker mechanism
  • Refactored legend entry mechanism
  • Each dataset can now set its own legend form/size/etc.
  • More demos
  • Some classes have been renamed, keeping the namespaced name only in ObjC (using Swift 2.2 objc(...) feature, and the change of a major version update)
  • FillFormatter now has a block representation using FillFormatter.withblock(...)
  • Same goes for all Default formatters too.
  • No more saveToCameraRoll(). Since Xcode 8.0 it causes "privacy" issues with Apple Review, you have to add the photo albums privacy key to your Info.plist for that.
  • Moved to Swift 3.0. Make sure your project conforms to Swift 3.0.
  • Many minor bug fixes and improvements

Breaking changes / how to migrate:

  • All dataset constructors have changed - they do not take an array of x-indices anymore.
  • All entry constructors have changed - they take in an X and a Y.
  • Pie and Radar chart entries now have their own classes. So exchange the Entry classes withPieChartDataEntry/RadarChartDataEntry
  • If you have any old startAtZeroEnabled calls - these have been deprecated for a long time. Replace them with axisMinimum.
  • If you are using formatters:
    • Replace any chart.valueFormatter = formatter with chart.valueFormatter = ChartDefaultValueFormatter(formatter: formatter) or chart.valueFormatter = [[ChartDefaultValueFormatter alloc] initWithFormatter:formatter];
    • Replace any axis.valueFormatter = formatter with axis.valueFormatter = ChartDefaultAxisValueFormatter(formatter: formatter) or axis.valueFormatter = [[ChartDefaultAxisValueFormatter alloc] initWithFormatter:formatter];
  • In general, all functions that accepted x-indices before, now accept an x-value, so you might have to adjust the names a little bit.
  • Where ChartViewDelegate is implemented, update the chartValueSelected interface
  • Replace drawSliceTextEnabled with drawEntryLabelsEnabled
  • If you have a custom scatter shape - implement an IShapeRenderer, and put your rendering code in there
  • If you have a custom marker - consider subclassing MarkerView/MarkerImage or implementing IMarker. There are more options than before now...
  • If you have used barSpace before, move to using barWidth
  • If you used saveToCameraRoll(), replace with UIImageWriteToSavedPhotosAlbum(chart.getChartImage(trasparent: false), nil, nil, nil)
  • Some classes have been renamed for a cleaner look. They do not contain the "Chart" prefix anymore. That's for Swift only, where there are namespaces. In ObjC the names stayed the same for the sake of namespacing, using Swift 2.2's feature of @objc(name). If your compiler yells that a class does not exist, try to remove the Chart from its name. This should rarely happen, as we've chosen only the classes that are rarely instantiated by the user.

Bridging the gap

21 Sep 02:13
Compare
Choose a tag to compare

Disclaimer: This is a legacy release to support Swift 2.3 for Charts v2.2.5. If you need Swift 3.0 support please wait for Charts v3.0.0 to be released

Updates:

  • We've moved to Swift 2.3, which means that the minimum required Xcode version is now 8.0

New features and bugfixes - The New-Born Release

30 May 06:49
Compare
Choose a tag to compare
  • New: Horizontal cubic bezier lines for Line chart (through mode property)
  • New: Allow transparent color in circle hole color (Line chart)
  • New: circleHoleRadius property for more control over line chart circles
  • New: PieChart values outside of chart (connected with lines)
  • New: highlightFullBar for highlighting all values on an x-index at once
  • New: Allow setting xVals on existing Data objects
  • New: Allow bubble sizes to not be normalized against the dataset max
  • New: Added material color template
  • New: Flag to control whether we draw a limit line's labels
  • New: Exploded the Legend-Position enum to support more combinations
  • New: Allow drawing borders for bars in a Bar chart
  • Improved: Highlighting when multiple values on x-index present (bubble chart, combined chart)
  • Fixed: We are now taking into account the extra offsets for Pie/Radar chart view
  • Fixes regarding MarkerView
  • Fixes regarding the transition to Swift 2.2
  • Improvements to Demo, now keeping dataset styling when changin dataset size
  • General bugfixes

Why newborn release? Because I have an amazing new baby girl!

New features, Swift 2.2/3.0, and bugfixes

31 Mar 20:50
Compare
Choose a tag to compare
  • Breaking change: Simplified setting axis min and max value. Now instead of 4 different confusing variables for axis min/max, there's only one to mess with: axisMinValue and axisMaxValue. These are instead of customAxisMin/customAxisMax. And axisMinimum/axisMaximum do not exist anymore. (This change happened on the Android side too, and is mutually compatible)
  • We've moved to Swift 2.2, which means that the minimum required Xcode version is now 7.3
  • New support for stepped line charts!
  • The new zero-line feature now defaults to false
  • Fixes related to cubic-lines
  • Improvements to edge cases in Pie charts
  • Many more bugfixes

New animations, OSX support, and more...

29 Feb 06:38
Compare
Choose a tag to compare
  • OSX support! (Thanks goes to @pixelspark)
  • Viewport can now me moved with animations
  • New candlestick rendering mode - without the bars, just lines and ticks
  • New X shape for scatter chart
  • PieChart improvements (slice spacing and other stuff)
  • CandleStickChart improvements
  • BubbleChart improvements
  • RadarChart improvements
  • ScatterChart improvements
  • General improvements and bugfixes

ChartsRealm is a separate framework now, color per value

09 Feb 08:14
Compare
Choose a tag to compare
  • ChartsRealm is a separate framework now (to avoid dependency problems)
  • Add support for setting different colors for values
  • Other minor fixes

Easier compilation when not referencing Realm

01 Feb 15:42
Compare
Choose a tag to compare
  • Updates podspec to include Realm support
  • Easier compilation of source code when not referencing Realm

Realm.io support, New features, Bugfixes

26 Jan 18:17
Compare
Choose a tag to compare
  • Plotting data directly from Realm.io mobile data base
  • Realm.io tutorial
  • Introducing DataSet interfaces (e.g. ILineDataSet), allowing you to implement other sources for datasets, which could possibly be dynamic.
  • Made all renderer members public for extensibility, due to lack of protected in Swift
  • Many bugfixes and little improvements

Note: This release may contain breaking changes for you if you have subclassed datasets/renderers.

New features, general improvements

02 Nov 21:17
Compare
Choose a tag to compare
  • Feature: XAxis labels can now be rotated
  • Feature: Disable tap-highlighting separately from highlighting via drag or programmatically
  • Feature: Support for customizing description text position
  • Feature: Full tvOS support with Xcode 7.1
  • Bugfix: Default number of lines to skip in RadarChart was wrong
  • Bugfix: avoidFirstLastClipping has weird offsets sometimes
  • Bugfix: Fixed a case where of highlight not clearing on first tap
  • Bugfix: Fixes a potential crash in drawCircles()
  • Bugfix: Fixed deltaX in combined chart was not calculated in some cases
  • Bugfix: Fixed a bug where panning was disabled in BarLineChart if a drag offset
    was set
  • Improvements: More "dynamic" control over position of MarkerView
  • Other minor bugfixes