Latest 0.1
License MIT
Platforms ios 7.0, requires ARC

MCTimeSeriesView License MIT

Badge w/ Version
Badge w/ Platform

A light-weight solution for displaying time series charts.




Add the following to your CocoaPods Podfile

pod 'MCTimeSeriesView', '~> 0.1'

or clone as a git submodule,

or just copy files in the MCTimeSeriesView folder into your project.

Using MCTimeSeriesView

Add the MCTimeSeriesView class either programmatically or assign the custom class via storyboard. Then set the points property. Then tell the view to reload data

self.chartView.points = @[
    [MCTimeSeriesPoint pointWithDate:[NSDate dateWithTimeIntervalSince1970:1385827200] average:2083 high:2116 low:2025],
    [MCTimeSeriesPoint pointWithDate:[NSDate dateWithTimeIntervalSince1970:1388505600] average:2201 high:2318 low:2080],
    [MCTimeSeriesPoint pointWithDate:[NSDate dateWithTimeIntervalSince1970:1393603200] average:2022 high:2022 low:2022],
    [MCTimeSeriesPoint pointWithDate:[NSDate dateWithTimeIntervalSince1970:1396281600] average:2017 high:2073 low:1961],
    [MCTimeSeriesPoint pointWithDate:[NSDate dateWithTimeIntervalSince1970:1406822400] average:1906 high:1906 low:1906],
    [MCTimeSeriesPoint pointWithDate:[NSDate dateWithTimeIntervalSince1970:1409500800] average:1906 high:2100 low:1800],
[self.chartView reloadData];

The view automatically determines the ideal region to display based on the maximum and minimum values of your points. See the demo project for more details.


MCTimeSeriesView is under the MIT license.

Latest podspec

    "name": "MCTimeSeriesView",
    "version": "0.1",
    "platforms": {
        "ios": "7.0"
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "summary": "A light-weight solution for displaying time series charts.",
    "homepage": "",
    "authors": {
        "Matthew Cheok": "[email protected]"
    "requires_arc": true,
    "source": {
        "git": "",
        "branch": "master",
        "tag": "0.1"
    "source_files": "MCTimeSeriesView/*.{h,m}",
    "public_header_files": "MCTimeSeriesView/*.h"

Pin It on Pinterest

Share This