import Highcharts
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let chartView = HIChartView(frame: view.bounds)
let options = HIOptions()
let chart = HIChart()
chart.type = "arearange"
chart.zoomType = "x"
chart.scrollablePlotArea = HIScrollablePlotArea()
chart.scrollablePlotArea.minWidth = 600
chart.scrollablePlotArea.scrollPositionX = 1
options.chart = chart
let title = HITitle()
title.text = "Temperature variation by day"
options.title = title
let xAxis = HIXAxis()
xAxis.type = "datetime"
xAxis.accessibility = HIAccessibility()
xAxis.accessibility.rangeDescription = "Range: Jan 1st 2017 to Dec 31 2017."
options.xAxis = [xAxis]
let yAxis = HIYAxis()
yAxis.title = HITitle()
options.yAxis = [yAxis]
let tooltip = HITooltip()
// tooltip.crosshairs = true
tooltip.shared = true
tooltip.valueSuffix = "°C"
tooltip.xDateFormat = "%A, %b %e"
options.tooltip = tooltip
let legend = HILegend()
legend.enabled = false
options.legend = legend
let temperatures = HIArearange()
temperatures.name = "Temperatures"
temperatures.data = getData()
options.series = [temperatures]
chartView.options = options
self.view.addSubview(chartView)
}
private func getData() -> [Any] {
return [
[1483232400000, 1.4, 4.7],
[1483318800000, -1.3, 1.9],
[1483405200000, -0.7, 4.3],
[1483491600000, -5.5, 3.2],
[1483578000000, -9.9, -6.6],
[1483664400000, -9.6, 0.1],
[1483750800000, -0.9, 4.0],
[1483837200000, -2.2, 2.9],
[1483923600000, 1.3, 2.3],
[1484010000000, -0.3, 2.9],
[1484096400000, 1.1, 3.8],
[1484182800000, 0.6, 2.1],
[1484269200000, -3.4, 2.5],
[1484355600000, -2.9, 2.0],
[1484442000000, -5.7, -2.6],
[1484528400000, -8.7, -3.3],
[1484614800000, -3.5, -0.3],
[1484701200000, -0.2, 7.0],
[1484787600000, 2.3, 8.5],
[1484874000000, 5.6, 9.5],
[1484960400000, 0.4, 5.8],
[1485046800000, 0.1, 3.1],
[1485133200000, 1.5, 4.1],
[1485219600000, -0.2, 2.8],
[1485306000000, 2.3, 10.3],
[1485392400000, -0.8, 9.4],
[1485478800000, -1.3, 4.6],
[1485565200000, -0.6, 5.3],
[1485651600000, 1.4, 5.8],
[1485738000000, -3.6, 0.9],
[1485824400000, -5.4, -2.6],
[1485910800000, -5.5, 0.8],
[1485997200000, -0.8, 2.5],
[1486083600000, 1.6, 4.1],
[1486170000000, 1.3, 4.8],
[1486256400000, 0.7, 4.6],
[1486342800000, -1.1, 4.5],
[1486429200000, -5.5, -0.9],
[1486515600000, -8.6, -4.2],
[1486602000000, -8.3, -1.6],
[1486688400000, -4.0, 0.9],
[1486774800000, -5.3, -0.5],
[1486861200000, -5.8, 0.4],
[1486947600000, -4.4, 0.4],
[1487034000000, -4.3, 0.6],
[1487120400000, -4.6, 2.7],
[1487206800000, 1.6, 3.2],
[1487293200000, 2.3, 6.2],
[1487379600000, 2.4, 4.1],
[1487466000000, 2.3, 8.5],
[1487552400000, 3.8, 6.8],
[1487638800000, 2.4, 4.9],
[1487725200000, 0.4, 4.5],
[1487811600000, -5.9, 4.0],
[1487898000000, -5.9, 1.5],
[1487984400000, -6.2, -1.7],
[1488070800000, -4.5, 2.3],
[1488157200000, 0.9, 5.6],
[1488243600000, 1.6, 4.9],
[1488330000000, -0.2, 5.5],
[1488416400000, -1.8, 4.4],
[1488502800000, -1.9, 3.3],
[1488589200000, -4.4, 2.5],
[1488675600000, 0.7, 4.1],
[1488762000000, -6.0, 2.7],
[1488848400000, -8.1, -0.1],
[1488934800000, -10.2, -0.5],
[1489021200000, -2.3, 3.7],
[1489107600000, 0.3, 4.7],
[1489194000000, -1.9, 5.2],
[1489280400000, 1.1, 3.1],
[1489366800000, 2.3, 7.0],
[1489453200000, 3.1, 7.7],
[1489539600000, 2.8, 6.3],
[1489626000000, 1.9, 8.9],
[1489712400000, 0.8, 5.5],
[1489798800000, -1.6, 4.3],
[1489885200000, -1.9, 3.3],
[1489971600000, 0.5, 4.4],
[1490058000000, 1.7, 6.6],
[1490144400000, 0.4, 5.1],
[1490230800000, -1.2, 3.5],
[1490317200000, 0.9, 7.4],
[1490403600000, 3.3, 8.4],
[1490490000000, 4.6, 10.1],
[1490572800000, 3.9, 11.8],
[1490659200000, 1.3, 8.9],
[1490745600000, 1.4, 9.8],
[1490832000000, -0.1, 2.4],
[1490918400000, 1.9, 6.8],
[1491004800000, 4.3, 12.2],
[1491091200000, 5.4, 9.3],
[1491177600000, 2.5, 11.1],
[1491264000000, 5.6, 10.2],
[1491350400000, 3.7, 7.6],
[1491436800000, 3.3, 7.4],
[1491523200000, 6.9, 12.0],
[1491609600000, 5.8, 10.9],
[1491696000000, 7.5, 12.1],
[1491782400000, 2.3, 9.7],
[1491868800000, 2.1, 7.1],
[1491955200000, 0.4, 6.9],
[1492041600000, 3.0, 7.0],
[1492128000000, -1.2, 8.9],
[1492214400000, 0.4, 7.5],
[1492300800000, 0.9, 4.4],
[1492387200000, -0.9, 8.2],
[1492473600000, -1.7, 9.6],
[1492560000000, 2.2, 7.5],
[1492646400000, 3.9, 9.1],
[1492732800000, 2.3, 6.5],
[1492819200000, 2.0, 7.4],
[1492905600000, 1.6, 6.9],
[1492992000000, 1.4, 4.7],
[1493078400000, -0.9, 9.7],
[1493164800000, 1.8, 7.9],
[1493251200000, 0.5, 10.6],
[1493337600000, 0.8, 11.0],
[1493424000000, 4.3, 11.6],
[1493510400000, -1.6, 11.7],
[1493596800000, -0.6, 14.3],
[1493683200000, 1.1, 16.1],
[1493769600000, 1.7, 17.1],
[1493856000000, 3.1, 17.6],
[1493942400000, 5.3, 19.2],
[1494028800000, 5.6, 20.3],
[1494115200000, 5.4, 18.0],
[1494201600000, 2.9, 12.1],
[1494288000000, 0.9, 8.6],
[1494374400000, 1.2, 7.7],
[1494460800000, 3.3, 10.1],
[1494547200000, 2.7, 14.1],
[1494633600000, 2.5, 16.6],
[1494720000000, 9.0, 12.7],
[1494806400000, 8.2, 17.0],
[1494892800000, 9.0, 11.8],
[1494979200000, 9.3, 16.9],
[1495065600000, 10.2, 12.1],
[1495152000000, 9.9, 20.3],
[1495238400000, 9.0, 23.1],
[1495324800000, 9.9, 16.9],
[1495411200000, 7.2, 12.5],
[1495497600000, 3.3, 18.1],
[1495584000000, 8.3, 12.9],
[1495670400000, 8.5, 13.1],
[1495756800000, 10.5, 16.1],
[1495843200000, 10.3, 22.3],
[1495929600000, 9.0, 18.2],
[1496016000000, 12.3, 15.6],
[1496102400000, 12.5, 16.3],
[1496188800000, 9.9, 13.6],
[1496275200000, 3.7, 14.8],
[1496361600000, 8.6, 14.3],
[1496448000000, 10.0, 18.3],
[1496534400000, 9.7, 13.0],
[1496620800000, 9.0, 14.3],
[1496707200000, 8.3, 14.3],
[1496793600000, 11.1, 18.4],
[1496880000000, 10.7, 16.6],
[1496966400000, 7.2, 16.3],
[1497052800000, 11.5, 15.3],
[1497139200000, 11.1, 15.1],
[1497225600000, 10.4, 16.5],
[1497312000000, 11.3, 14.6],
[1497398400000, 9.1, 17.6],
[1497484800000, 9.9, 15.5],
[1497571200000, 12.3, 14.9],
[1497657600000, 10.5, 15.1],
[1497744000000, 11.4, 18.0],
[1497830400000, 9.9, 14.8],
[1497916800000, 8.1, 12.4],
[1498003200000, 8.6, 15.5],
[1498089600000, 9.4, 13.0],
[1498176000000, 11.2, 13.0],
[1498262400000, 9.0, 15.3],
[1498348800000, 7.7, 13.6],
[1498435200000, 10.3, 13.6],
[1498521600000, 6.3, 18.0],
[1498608000000, 5.5, 21.7],
[1498694400000, 9.1, 23.2],
[1498780800000, 12.6, 25.4],
[1498867200000, 10.6, 19.6],
[1498953600000, 11.3, 14.5],
[1499040000000, 9.2, 16.1],
[1499126400000, 8.7, 17.9],
[1499212800000, 6.9, 19.5],
[1499299200000, 6.6, 20.0],
[1499385600000, 9.7, 15.7],
[1499472000000, 11.9, 14.2],
[1499558400000, 8.7, 14.2],
[1499644800000, 9.7, 18.4],
[1499731200000, 10.3, 16.8],
[1499817600000, 10.9, 15.5],
[1499904000000, 10.2, 16.8],
[1499990400000, 6.0, 18.9],
[1500076800000, 9.1, 19.1],
[1500163200000, 11.6, 15.7],
[1500249600000, 8.8, 12.4],
[1500336000000, 9.2, 16.3],
[1500422400000, 6.2, 23.0],
[1500508800000, 8.2, 26.2],
[1500595200000, 11.7, 20.3],
[1500681600000, 13.6, 24.1],
[1500768000000, 13.8, 25.3],
[1500854400000, 13.7, 18.6],
[1500940800000, 12.9, 20.8],
[1501027200000, 12.9, 20.5],
[1501113600000, 13.6, 18.2],
[1501200000000, 12.3, 17.5],
[1501286400000, 10.4, 17.0],
[1501372800000, 12.6, 19.0],
[1501459200000, 12.3, 18.1],
[1501545600000, 11.3, 14.4],
[1501632000000, 11.3, 17.2],
[1501718400000, 10.7, 21.4],
[1501804800000, 12.1, 15.2],
[1501891200000, 12.3, 17.0],
[1501977600000, 12.4, 18.7],
[1502064000000, 11.7, 16.3],
[1502150400000, 10.0, 15.2],
[1502236800000, 8.1, 19.3],
[1502323200000, 11.9, 17.5],
[1502409600000, 15.3, 17.6],
[1502496000000, 12.7, 15.8],
[1502582400000, 9.4, 14.8],
[1502668800000, 9.3, 15.2],
[1502755200000, 10.6, 13.6],
[1502841600000, 10.8, 15.6],
[1502928000000, 10.2, 15.8],
[1503014400000, 12.3, 18.2],
[1503100800000, 11.7, 18.0],
[1503187200000, 11.5, 16.9],
[1503273600000, 11.5, 17.7],
[1503360000000, 7.6, 18.5],
[1503446400000, 6.7, 19.8],
[1503532800000, 8.3, 17.2],
[1503619200000, 7.7, 20.5],
[1503705600000, 8.1, 19.4],
[1503792000000, 6.7, 17.9],
[1503878400000, 12.6, 15.8],
[1503964800000, 9.0, 16.5],
[1504051200000, 10.3, 16.7],
[1504137600000, 9.2, 17.3],
[1504224000000, 10.3, 14.8],
[1504310400000, 5.3, 17.6],
[1504396800000, 5.2, 16.7],
[1504483200000, 7.1, 19.2],
[1504569600000, 10.3, 14.0],
[1504656000000, 11.9, 15.1],
[1504742400000, 11.9, 14.2],
[1504828800000, 9.6, 15.9],
[1504915200000, 9.1, 14.0],
[1505001600000, 8.3, 13.7],
[1505088000000, 6.8, 15.0],
[1505174400000, 6.8, 14.3],
[1505260800000, 7.1, 15.5],
[1505347200000, 5.1, 15.3],
[1505433600000, 6.7, 16.8],
[1505520000000, 4.0, 16.1],
[1505606400000, 3.5, 15.8],
[1505692800000, 8.1, 12.7],
[1505779200000, 10.4, 13.4],
[1505865600000, 7.4, 11.8],
[1505952000000, 4.6, 11.6],
[1506038400000, 9.4, 13.3],
[1506124800000, 7.2, 16.0],
[1506211200000, 6.2, 13.7],
[1506297600000, 6.7, 19.5],
[1506384000000, 7.8, 17.1],
[1506470400000, 10.3, 16.9],
[1506556800000, 11.9, 18.2],
[1506643200000, 10.0, 18.9],
[1506729600000, 9.8, 13.5],
[1506816000000, 9.1, 16.0],
[1506902400000, 9.8, 15.9],
[1506988800000, 8.6, 9.7],
[1507075200000, 6.3, 11.2],
[1507161600000, 6.0, 9.5],
[1507248000000, 8.3, 11.9],
[1507334400000, 5.6, 10.0],
[1507420800000, 0.7, 10.0],
[1507507200000, -0.8, 8.9],
[1507593600000, 1.2, 7.7],
[1507680000000, 5.3, 7.1],
[1507766400000, 5.8, 9.6],
[1507852800000, 4.8, 8.1],
[1507939200000, 7.5, 12.7],
[1508025600000, 7.9, 14.7],
[1508112000000, 7.6, 15.7],
[1508198400000, 6.2, 8.0],
[1508284800000, 0.5, 6.6],
[1508371200000, -1.3, 5.6],
[1508457600000, 3.8, 10.9],
[1508544000000, 6.8, 11.2],
[1508630400000, 7.2, 11.0],
[1508716800000, 3.4, 9.8],
[1508803200000, 4.8, 7.4],
[1508889600000, 4.9, 6.5],
[1508976000000, 2.6, 6.8],
[1509062400000, 4.1, 9.2],
[1509148800000, 3.5, 10.2],
[1509235200000, 4.0, 6.8],
[1509325200000, 3.2, 5.1],
[1509411600000, 3.1, 5.2],
[1509498000000, 5.2, 6.7],
[1509584400000, 1.4, 9.4],
[1509670800000, 1.3, 6.3],
[1509757200000, 4.3, 7.4],
[1509843600000, 4.8, 6.9],
[1509930000000, 0.9, 6.8],
[1510016400000, 2.9, 6.9],
[1510102800000, 4.6, 8.7],
[1510189200000, 3.9, 9.2],
[1510275600000, 1.2, 4.7],
[1510362000000, 1.0, 3.9],
[1510448400000, 2.9, 6.5],
[1510534800000, -0.6, 5.7],
[1510621200000, 0.1, 1.8],
[1510707600000, 1.8, 5.2],
[1510794000000, 1.7, 5.2],
[1510880400000, 2.7, 6.8],
[1510966800000, 1.1, 5.2],
[1511053200000, -0.1, 3.6],
[1511139600000, 0.9, 2.7],
[1511226000000, -4.1, 0.8],
[1511312400000, -3.8, -0.3],
[1511398800000, -1.0, 5.4],
[1511485200000, 2.4, 4.5],
[1511571600000, 1.3, 3.9],
[1511658000000, -3.3, 2.8],
[1511744400000, -3.9, -0.7],
[1511830800000, -5.3, -0.6],
[1511917200000, -8.4, -5.1],
[1512003600000, -8.7, -5.4],
[1512090000000, -8.2, -2.8],
[1512176400000, -2.6, 3.8],
[1512262800000, 1.8, 4.3],
[1512349200000, 0.9, 3.8],
[1512435600000, 0.8, 5.9],
[1512522000000, 1.5, 3.0],
[1512608400000, 2.5, 7.3],
[1512694800000, 2.0, 4.9],
[1512781200000, -0.8, 2.6],
[1512867600000, -1.4, 0.2],
[1512954000000, -2.3, -0.9],
[1513040400000, -9.0, -2.2],
[1513126800000, -8.8, -2.6],
[1513213200000, -7.0, -3.9],
[1513299600000, -8.1, -5.5],
[1513386000000, -7.5, -3.4],
[1513472400000, -8.1, -1.8],
[1513558800000, -1.5, 1.9],
[1513645200000, 1.3, 2.2],
[1513731600000, 2.1, 6.0],
[1513818000000, 2.2, 7.1],
[1513904400000, 2.7, 5.9],
[1513990800000, 2.5, 8.6],
[1514077200000, 1.8, 5.6],
[1514163600000, 1.0, 3.1],
[1514250000000, 1.3, 1.6],
[1514336400000, 0.8, 1.3],
[1514422800000, -3.3, -1.4],
[1514509200000, -1.5, -0.2],
[1514595600000, -2.7, -1.0],
[1514682000000, -2.8, 0.3]
]
}
}
#import <UIKit/UIKit.h>
#import <Highcharts/Highcharts.h>
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
HIChartView *chartView = [[HIChartView alloc] initWithFrame:self.view.bounds];
HIOptions *options = [[HIOptions alloc]init];
HIChart *chart = [[HIChart alloc]init];
chart.type = @"arearange";
chart.zoomType = @"x";
chart.scrollablePlotArea = [[HIScrollablePlotArea alloc] init];
chart.scrollablePlotArea.minWidth = @600;
chart.scrollablePlotArea.scrollPositionX = @1;
HITitle *title = [[HITitle alloc]init];
title.text = @"Temperature variation by day";
HIXAxis *xaxis = [[HIXAxis alloc]init];
xaxis.type = @"datetime";
HIYAxis *yaxis = [[HIYAxis alloc]init];
yaxis.title = [[HITitle alloc]init];
HITooltip *tooltip = [[HITooltip alloc]init];
// tooltip.crosshairs = [[NSNumber alloc] initWithBool:true];
tooltip.shared = [[NSNumber alloc] initWithBool:true];
tooltip.valueSuffix = @"°C";
HILegend *legend = [[HILegend alloc]init];
legend.enabled = [[NSNumber alloc] initWithBool:false];
HIArearange *series = [[HIArearange alloc]init];
series.name = @"Temperatures";
series.data = [NSMutableArray arrayWithObjects:@[
@1388538000000,
@1.1,
@4.7
],
@[
@1388624400000,
@1.8,
@6.4
],
@[
@1388710800000,
@1.7,
@6.9
],
@[
@1388797200000,
@2.6,
@7.4
],
@[
@1388883600000,
@3.3,
@9.3
],
@[
@1388970000000,
@3,
@7.9
],
@[
@1389056400000,
@3.9,
@6
],
@[
@1389142800000,
@3.9,
@5.5
],
@[
@1389229200000,
@-0.6,
@4.5
],
@[
@1389315600000,
@-0.5,
@5.3
],
@[
@1389402000000,
@-0.3,
@2.4
],
@[
@1389488400000,
@-6.5,
@-0.4
],
@[
@1389574800000,
@-7.3,
@-3.4
],
@[
@1389661200000,
@-7.3,
@-2.3
],
@[
@1389747600000,
@-7.9,
@-4.2
],
@[
@1389834000000,
@-4.7,
@0.9
],
@[
@1389920400000,
@-1.2,
@0.4
],
@[
@1390006800000,
@-2.3,
@-0.1
],
@[
@1390093200000,
@-2,
@0.3
],
@[
@1390179600000,
@-5.1,
@-2
],
@[
@1390266000000,
@-4.4,
@-0.5
],
@[
@1390352400000,
@-6.4,
@-2.7
],
@[
@1390438800000,
@-3.2,
@-0.5
],
@[
@1390525200000,
@-5.5,
@-0.8
],
@[
@1390611600000,
@-4.4,
@2.4
],
@[
@1390698000000,
@-4,
@1.1
],
@[
@1390784400000,
@-3.4,
@0.8
],
@[
@1390870800000,
@-1.7,
@2.6
],
@[
@1390957200000,
@-3.1,
@3.9
],
@[
@1391043600000,
@-4.8,
@-1.9
],
@[
@1391130000000,
@-7,
@-2.8
],
@[
@1391216400000,
@-2.7,
@2.6
],
@[
@1391302800000,
@-1.3,
@8.2
],
@[
@1391389200000,
@1.5,
@7.7
],
@[
@1391475600000,
@-0.5,
@5.3
],
@[
@1391562000000,
@-0.2,
@5.2
],
@[
@1391648400000,
@0.7,
@4.8
],
@[
@1391734800000,
@0.9,
@5.7
],
@[
@1391821200000,
@1.7,
@3.9
],
@[
@1391907600000,
@2.2,
@8.8
],
@[
@1391994000000,
@3,
@6.6
],
@[
@1392080400000,
@1.4,
@5.4
],
@[
@1392166800000,
@0.6,
@5.1
],
@[
@1392253200000,
@0.1,
@7.8
],
@[
@1392339600000,
@3.4,
@7.3
],
@[
@1392426000000,
@2,
@5.9
],
@[
@1392512400000,
@1.1,
@4.7
],
@[
@1392598800000,
@1.1,
@4.4
],
@[
@1392685200000,
@-2.8,
@2.6
],
@[
@1392771600000,
@-5,
@0.1
],
@[
@1392858000000,
@-5.7,
@0.2
],
@[
@1392944400000,
@-0.7,
@3.9
],
@[
@1393030800000,
@1.5,
@7.8
],
@[
@1393117200000,
@5.5,
@8.8
],
@[
@1393203600000,
@5.3,
@11.7
],
@[
@1393290000000,
@1.7,
@11.1
],
@[
@1393376400000,
@3.4,
@9.3
],
@[
@1393462800000,
@3.4,
@7.3
],
@[
@1393549200000,
@4.5,
@8
],
@[
@1393635600000,
@2.1,
@8.9
],
@[
@1393722000000,
@0.6,
@6.1
],
@[
@1393808400000,
@1.2,
@9.4
],
@[
@1393894800000,
@2.6,
@7.3
],
@[
@1393981200000,
@3.9,
@9.5
],
@[
@1394067600000,
@5.3,
@9.9
],
@[
@1394154000000,
@2.7,
@7.1
],
@[
@1394240400000,
@4,
@8.6
],
@[
@1394326800000,
@6.1,
@10.7
],
@[
@1394413200000,
@4.2,
@7.6
],
@[
@1394499600000,
@2.5,
@9
],
@[
@1394586000000,
@0.2,
@7
],
@[
@1394672400000,
@-1.2,
@6.9
],
@[
@1394758800000,
@0.4,
@6.7
],
@[
@1394845200000,
@0.2,
@5.1
],
@[
@1394931600000,
@-0.1,
@6
],
@[
@1395018000000,
@1,
@5.6
],
@[
@1395104400000,
@-1.1,
@6.3
],
@[
@1395190800000,
@-1.9,
@0.3
],
@[
@1395277200000,
@0.3,
@4.5
],
@[
@1395363600000,
@2.4,
@6.7
],
@[
@1395450000000,
@3.2,
@9.2
],
@[
@1395536400000,
@1.7,
@3.6
],
@[
@1395622800000,
@-0.3,
@7.9
],
@[
@1395709200000,
@-2.4,
@8.6
],
@[
@1395795600000,
@-1.7,
@10.3
],
@[
@1395882000000,
@4.1,
@10
],
@[
@1395968400000,
@4.4,
@14
],
@[
@1396054800000,
@3.3,
@11
],
@[
@1396141200000,
@3,
@12.5
],
@[
@1396224000000,
@1.4,
@10.4
],
@[
@1396310400000,
@-1.2,
@8.8
],
@[
@1396396800000,
@2.2,
@7.6
],
@[
@1396483200000,
@-1,
@10.1
],
@[
@1396569600000,
@-1.8,
@9.5
],
@[
@1396656000000,
@0.2,
@7.7
],
@[
@1396742400000,
@3.7,
@6.4
],
@[
@1396828800000,
@5.8,
@11.4
],
@[
@1396915200000,
@5.4,
@8.7
],
@[
@1397001600000,
@4.5,
@12.2
],
@[
@1397088000000,
@3.9,
@8.4
],
@[
@1397174400000,
@4.5,
@8
],
@[
@1397260800000,
@6.6,
@8.4
],
@[
@1397347200000,
@3.7,
@7.3
],
@[
@1397433600000,
@3.6,
@6.7
],
@[
@1397520000000,
@3.5,
@8.3
],
@[
@1397606400000,
@1.5,
@10.2
],
@[
@1397692800000,
@4.9,
@9.4
],
@[
@1397779200000,
@3.5,
@12
],
@[
@1397865600000,
@1.5,
@13.1
],
@[
@1397952000000,
@1.7,
@15.6
],
@[
@1398038400000,
@1.4,
@16
],
@[
@1398124800000,
@3,
@18.4
],
@[
@1398211200000,
@5.6,
@18.8
],
@[
@1398297600000,
@5.7,
@17.2
],
@[
@1398384000000,
@4.5,
@16.4
],
@[
@1398470400000,
@3.1,
@17.6
],
@[
@1398556800000,
@4.7,
@18.9
],
@[
@1398643200000,
@4.9,
@16.6
],
@[
@1398729600000,
@6.8,
@15.6
],
@[
@1398816000000,
@2.8,
@9.2
],
@[
@1398902400000,
@-2.7,
@10.5
],
@[
@1398988800000,
@-1.9,
@10.9
],
@[
@1399075200000,
@4.5,
@8.5
],
@[
@1399161600000,
@-0.6,
@10.4
],
@[
@1399248000000,
@4,
@9.7
],
@[
@1399334400000,
@5.5,
@9.5
],
@[
@1399420800000,
@6.5,
@13.2
],
@[
@1399507200000,
@3.2,
@14.5
],
@[
@1399593600000,
@2.1,
@13.5
],
@[
@1399680000000,
@6.5,
@15.6
],
@[
@1399766400000,
@5.7,
@16.2
],
@[
@1399852800000,
@6.3,
@15.3
],
@[
@1399939200000,
@5.3,
@15.3
],
@[
@1400025600000,
@6,
@14.1
],
@[
@1400112000000,
@1.9,
@7.7
],
@[
@1400198400000,
@7.2,
@9.8
],
@[
@1400284800000,
@8.9,
@15.2
],
@[
@1400371200000,
@9.1,
@20.5
],
@[
@1400457600000,
@8.4,
@17.9
],
@[
@1400544000000,
@6.8,
@21.5
],
@[
@1400630400000,
@7.6,
@14.1
],
@[
@1400716800000,
@11.1,
@16.5
],
@[
@1400803200000,
@9.3,
@14.3
],
@[
@1400889600000,
@10.4,
@19.3
],
@[
@1400976000000,
@5.7,
@19.4
],
@[
@1401062400000,
@7.9,
@17.9
],
@[
@1401148800000,
@5,
@22.5
],
@[
@1401235200000,
@7.6,
@22
],
@[
@1401321600000,
@5.7,
@21.9
],
@[
@1401408000000,
@4.6,
@20
],
@[
@1401494400000,
@7,
@22
],
@[
@1401580800000,
@5.1,
@20.6
],
@[
@1401667200000,
@6.6,
@24.6
],
@[
@1401753600000,
@9.7,
@22.2
],
@[
@1401840000000,
@9.6,
@21.6
],
@[
@1401926400000,
@13,
@20
],
@[
@1402012800000,
@12.9,
@18.2
],
@[
@1402099200000,
@8.5,
@23.2
],
@[
@1402185600000,
@9.2,
@21.4
],
@[
@1402272000000,
@10.5,
@22
],
@[
@1402358400000,
@7.3,
@23.4
],
@[
@1402444800000,
@12.1,
@18.2
],
@[
@1402531200000,
@11.1,
@13.3
],
@[
@1402617600000,
@10,
@20.7
],
@[
@1402704000000,
@5.8,
@23.4
],
@[
@1402790400000,
@7.4,
@20.1
],
@[
@1402876800000,
@10.3,
@21.9
],
@[
@1402963200000,
@7.8,
@16.8
],
@[
@1403049600000,
@11.6,
@19.7
],
@[
@1403136000000,
@9.8,
@16
],
@[
@1403222400000,
@10.7,
@14.4
],
@[
@1403308800000,
@9,
@15.5
],
@[
@1403395200000,
@5.1,
@13.3
],
@[
@1403481600000,
@10,
@19.3
],
@[
@1403568000000,
@5.2,
@22.1
],
@[
@1403654400000,
@6.3,
@21.3
],
@[
@1403740800000,
@5.5,
@21.1
],
@[
@1403827200000,
@8.4,
@19.7
],
@[
@1403913600000,
@7.1,
@23.3
],
@[
@1404000000000,
@6.1,
@20.8
],
@[
@1404086400000,
@8.4,
@22.6
],
@[
@1404172800000,
@7.6,
@23.3
],
@[
@1404259200000,
@8.1,
@21.5
],
@[
@1404345600000,
@11.2,
@18.1
],
@[
@1404432000000,
@6.4,
@14.9
],
@[
@1404518400000,
@12.7,
@23.1
],
@[
@1404604800000,
@15.3,
@21.7
],
@[
@1404691200000,
@15.1,
@19.4
],
@[
@1404777600000,
@10.8,
@22.8
],
@[
@1404864000000,
@15.8,
@29.7
],
@[
@1404950400000,
@15.8,
@29
],
@[
@1405036800000,
@15.2,
@30.5
],
@[
@1405123200000,
@14.9,
@28.1
],
@[
@1405209600000,
@13.1,
@27.4
],
@[
@1405296000000,
@15.5,
@23.5
],
@[
@1405382400000,
@14.7,
@20.1
],
@[
@1405468800000,
@14.4,
@16.8
],
@[
@1405555200000,
@12.6,
@18.5
],
@[
@1405641600000,
@13.9,
@24.4
],
@[
@1405728000000,
@11.3,
@26.9
],
@[
@1405814400000,
@13.3,
@27.4
],
@[
@1405900800000,
@13.3,
@29.7
],
@[
@1405987200000,
@14,
@28.8
],
@[
@1406073600000,
@14.1,
@29.8
],
@[
@1406160000000,
@15.4,
@31.1
],
@[
@1406246400000,
@17,
@26.5
],
@[
@1406332800000,
@16.6,
@27.1
],
@[
@1406419200000,
@13.3,
@25.6
],
@[
@1406505600000,
@16.8,
@21.9
],
@[
@1406592000000,
@16,
@22.8
],
@[
@1406678400000,
@14.4,
@19
],
@[
@1406764800000,
@12.8,
@18.1
],
@[
@1406851200000,
@12.6,
@18
],
@[
@1406937600000,
@11.4,
@19.7
],
@[
@1407024000000,
@13.9,
@18.9
],
@[
@1407110400000,
@12.5,
@19.9
],
@[
@1407196800000,
@12.3,
@23.4
],
@[
@1407283200000,
@12.8,
@23.3
],
@[
@1407369600000,
@11,
@20.4
],
@[
@1407456000000,
@14.7,
@22.4
],
@[
@1407542400000,
@11.1,
@23.6
],
@[
@1407628800000,
@13.5,
@20.7
],
@[
@1407715200000,
@13.7,
@23.1
],
@[
@1407801600000,
@12.8,
@19.6
],
@[
@1407888000000,
@12.1,
@18.7
],
@[
@1407974400000,
@8.8,
@22.4
],
@[
@1408060800000,
@8.2,
@20.1
],
@[
@1408147200000,
@10.9,
@16.3
],
@[
@1408233600000,
@10.7,
@16.1
],
@[
@1408320000000,
@11,
@18.9
],
@[
@1408406400000,
@12.1,
@14.7
],
@[
@1408492800000,
@11.2,
@14.4
],
@[
@1408579200000,
@9.9,
@16.6
],
@[
@1408665600000,
@6.9,
@15.7
],
@[
@1408752000000,
@8.9,
@15.3
],
@[
@1408838400000,
@8.2,
@17.6
],
@[
@1408924800000,
@8.4,
@19.5
],
@[
@1409011200000,
@6.6,
@19.9
],
@[
@1409097600000,
@6.4,
@19.7
],
@[
@1409184000000,
[NSNull null],
[NSNull null]
],
@[
@1409270400000,
[NSNull null],
[NSNull null]
],
@[
@1409356800000,
[NSNull null],
[NSNull null]
],
@[
@1409443200000,
[NSNull null],
[NSNull null]
],
@[
@1409529600000,
[NSNull null],
[NSNull null]
],
@[
@1409616000000,
[NSNull null],
[NSNull null]
],
@[
@1409702400000,
[NSNull null],
[NSNull null]
],
@[
@1409788800000,
[NSNull null],
[NSNull null]
],
@[
@1409875200000,
[NSNull null],
[NSNull null]
],
@[
@1409961600000,
@13.4,
@13.4
],
@[
@1410048000000,
@13.2,
@17.1
],
@[
@1410134400000,
@11.9,
@18.9
],
@[
@1410220800000,
@9,
@15.9
],
@[
@1410307200000,
@5.9,
@17.5
],
@[
@1410393600000,
@6.8,
@16.2
],
@[
@1410480000000,
@10.3,
@19.9
],
@[
@1410566400000,
@8.7,
@17.9
],
@[
@1410652800000,
@7.9,
@19.1
],
@[
@1410739200000,
@6,
@20.1
],
@[
@1410825600000,
@4.7,
@19.9
],
@[
@1410912000000,
@4,
@18.8
],
@[
@1410998400000,
@4.5,
@17.9
],
@[
@1411084800000,
@3.1,
@16.1
],
@[
@1411171200000,
@8.5,
@12.2
],
@[
@1411257600000,
@7.6,
@13.8
],
@[
@1411344000000,
@1.3,
@12.6
],
@[
@1411430400000,
@2,
@10.9
],
@[
@1411516800000,
@5,
@10.8
],
@[
@1411603200000,
@6.4,
@10.1
],
@[
@1411689600000,
@8.2,
@13.3
],
@[
@1411776000000,
@8.9,
@11.8
],
@[
@1411862400000,
@9.9,
@15.9
],
@[
@1411948800000,
@5.2,
@12.5
],
@[
@1412035200000,
@4.6,
@11.7
],
@[
@1412121600000,
@8.8,
@12.1
],
@[
@1412208000000,
@3.9,
@12.3
],
@[
@1412294400000,
@2.7,
@18.1
],
@[
@1412380800000,
@10.2,
@18.2
],
@[
@1412467200000,
@9.6,
@17.9
],
@[
@1412553600000,
@9.3,
@17.5
],
@[
@1412640000000,
@8.1,
@12.7
],
@[
@1412726400000,
@6.7,
@11.2
],
@[
@1412812800000,
@4,
@10
],
@[
@1412899200000,
@6.3,
@10.2
],
@[
@1412985600000,
@6.6,
@10.7
],
@[
@1413072000000,
@6.6,
@10.3
],
@[
@1413158400000,
@5.9,
@10.4
],
@[
@1413244800000,
@1.2,
@10.6
],
@[
@1413331200000,
@-0.1,
@9.2
],
@[
@1413417600000,
@-1,
@9.4
],
@[
@1413504000000,
@-1.7,
@8.3
],
@[
@1413590400000,
@-0.6,
@7.5
],
@[
@1413676800000,
@6.9,
@10.1
],
@[
@1413763200000,
@7.7,
@10.5
],
@[
@1413849600000,
@3.8,
@9.7
],
@[
@1413936000000,
@6.2,
@8.6
],
@[
@1414022400000,
@6.5,
@9.2
],
@[
@1414108800000,
@7.9,
@10.7
],
@[
@1414195200000,
@6.1,
@10.9
],
@[
@1414281600000,
@10.3,
@13.1
],
@[
@1414371600000,
@7.1,
@13.3
],
@[
@1414458000000,
@0,
@10.1
],
@[
@1414544400000,
@0,
@5.7
],
@[
@1414630800000,
@3.9,
@4.6
],
@[
@1414717200000,
@4,
@4.8
],
@[
@1414803600000,
@4.8,
@11.2
],
@[
@1414890000000,
@7,
@8.5
],
@[
@1414976400000,
@3,
@9.8
],
@[
@1415062800000,
@2.8,
@5.9
],
@[
@1415149200000,
@0.8,
@4.8
],
@[
@1415235600000,
@-0.2,
@2.9
],
@[
@1415322000000,
@-0.6,
@5.5
],
@[
@1415408400000,
@6.6,
@10.3
],
@[
@1415494800000,
@5.4,
@7.3
],
@[
@1415581200000,
@3,
@8.4
],
@[
@1415667600000,
@0.4,
@3.2
],
@[
@1415754000000,
@-0.1,
@6.8
],
@[
@1415840400000,
@4.8,
@8.8
],
@[
@1415926800000,
@4.6,
@8.5
],
@[
@1416013200000,
@4.3,
@7.7
],
@[
@1416099600000,
@3.3,
@7.5
],
@[
@1416186000000,
@-0.4,
@3.2
],
@[
@1416272400000,
@1.9,
@4.7
],
@[
@1416358800000,
@-0.2,
@3.7
],
@[
@1416445200000,
@-1.3,
@2.1
],
@[
@1416531600000,
@-1.8,
@0.9
],
@[
@1416618000000,
@-2.7,
@1.3
],
@[
@1416704400000,
@0.3,
@2.5
],
@[
@1416790800000,
@3.4,
@6.5
],
@[
@1416877200000,
@0.8,
@6.1
],
@[
@1416963600000,
@-1,
@1.3
],
@[
@1417050000000,
@0.4,
@3.1
],
@[
@1417136400000,
@-1.2,
@1.9
],
@[
@1417222800000,
@-1.1,
@2.8
],
@[
@1417309200000,
@-0.7,
@1.8
],
@[
@1417395600000,
@0.5,
@2.5
],
@[
@1417482000000,
@1.4,
@3.2
],
@[
@1417568400000,
@4.5,
@10.2
],
@[
@1417654800000,
@0.4,
@10
],
@[
@1417741200000,
@2.5,
@3.7
],
@[
@1417827600000,
@1.1,
@5
],
@[
@1417914000000,
@2,
@4.4
],
@[
@1418000400000,
@1.4,
@2.2
],
@[
@1418086800000,
@0.7,
@4.6
],
@[
@1418173200000,
@1.9,
@3.9
],
@[
@1418259600000,
@-0.2,
@3.7
],
@[
@1418346000000,
@-0.1,
@1.7
],
@[
@1418432400000,
@-1,
@3.8
],
@[
@1418518800000,
@0.5,
@5.4
],
@[
@1418605200000,
@-1.7,
@5.6
],
@[
@1418691600000,
@0.3,
@2.8
],
@[
@1418778000000,
@-3,
@0.4
],
@[
@1418864400000,
@-1.1,
@1.5
],
@[
@1418950800000,
@0.8,
@3.4
],
@[
@1419037200000,
@0.9,
@4.4
],
@[
@1419123600000,
@0.3,
@3.9
],
@[
@1419210000000,
@0.6,
@5.3
],
@[
@1419296400000,
@1.5,
@4.4
],
@[
@1419382800000,
[NSNull null],
[NSNull null]
],
@[
@1419469200000,
[NSNull null],
[NSNull null]
],
@[
@1419555600000,
@-4.2,
@-4.1
],
@[
@1419642000000,
@-10.2,
@-5.2
],
@[
@1419728400000,
@-8.4,
@-4.1
],
@[
@1419814800000,
@-5.2,
@2.4
],
@[
@1419901200000,
@1.3,
@2.5
],
@[
@1419987600000,
@1.6,
@4.2
]
, nil];
options.chart = chart;
options.title = title;
options.xAxis = [NSMutableArray arrayWithObjects:xaxis, nil];
options.yAxis = [NSMutableArray arrayWithObjects:yaxis, nil];
options.tooltip = tooltip;
options.legend = legend;
options.series = [NSMutableArray arrayWithObjects:series, nil];
chartView.options = options;
[self.view addSubview:chartView];
}
@end