StockChartHorizontalView * horizontalView = [[StockChartHorizontalView alloc]initWithFrame:CGRectMake(-([[UIScreen mainScreen]bounds].size.height-[[UIScreen mainScreen]bounds].size.width)/2, ([[UIScreen mainScreen]bounds].size.height-[[UIScreen mainScreen]bounds].size.width)/2, [[UIScreen mainScreen]bounds].size.height, [[UIScreen mainScreen]bounds].size.width) ];
CGAffineTransform rotation = CGAffineTransformMakeRotation(90/180.0*M_PI);
horizontalView.transform = rotation;
[[[UIApplication sharedApplication]keyWindow] addSubview:horizontalView];;