single html page - html charts -

I need html - java script / jquery charts using single file. What do I need is as follows? - Above links are just for creating bar charts - I need to create line chart as well as pie charts & other charts. - I don't have knowledge regarding java scripts jQuery. - **Inshort - I need the reports within single file.** ( that is - no extra .css file or .js file or any other file, just because here, i have to use - NSString stringWithContentsOfFile-file - here I can specify only one file name. In short I have to do all these within one file. ) Let me illustrate what I have done. Here, I have generated a dynamic html page in iPhone & that page is attached in mail composer. Now, Below code is for creating html - table page. **I also want to create an html page of charts.** NSString *dt=[self getDateStringFromDate:[dtPicker date]]; NSDictionary *fromTo=[DatabaseAccess getFromToDate:dt]; if(arrayForIncomeExpense!=nil && [arrayForIncomeExpense retainCount]>0){ [arrayForIncomeExpense release]; arrayForIncomeExpense=nil; } arrayForIncomeExpense=[[NSArray alloc] initWithArray:[DatabaseAccess getIncomesExpensesSummaryForUserID:[BudgetTrackerAppDelegate getUserID] profileID:[BudgetTrackerAppDelegate getProfileID] fromDate:[fromTo valueForKey:@"fromDate"] toDate:[fromTo valueForKey:@"toDate"]]]; NSMutableString *htmlString=[[NSMutableString alloc] init]; NSDictionary *temp; int i,j=[arrayForIncomeExpense count]; for(i=-1;iBudget Tracker Report

Income - Expense SpreadSheet

"]; } else { temp=[arrayForIncomeExpense objectAtIndex:i]; [htmlString appendString:(i%2==0)?@"":@""]; [htmlString appendFormat:@"",[self getMonthYear:[temp valueForKey:@"MonthID"]]]; [htmlString appendFormat:@"",[[temp valueForKey:@"Income"] doubleValue]]; [htmlString appendFormat:@"",[[temp valueForKey:@"Expense"] doubleValue]]; [htmlString appendFormat:@"",[[temp valueForKey:@"Income"] doubleValue]-[[temp valueForKey:@"Expense"] doubleValue]]; [htmlString appendString:@""]; } } [htmlString appendString:@"
MonthIncomeExpenseBalance
%@%15.2lf%15.2lf%15.2lf
"]; NSLog(@"%@",htmlString); [htmlString writeToFile:[self pathOfHTMForExport] atomically:YES encoding:NSStringEncodingConversionAllowLossy error:nil]; picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate=self; [picker setSubject:@"bt SpreadSheet Report"]; NSString *filePath = [self pathOfHTMForExport]; NSData *d=[NSData dataWithContentsOfFile:filePath]; NSString *fileNameToSend=@"bt.htm"; [picker addAttachmentData:d mimeType:@"text/htm" fileName:fileNameToSend]; NSString *emailBody = [NSString stringWithFormat:@"%@",@"Hello! This is export test for html report."]; [picker setMessageBody:emailBody isHTML:NO]; [ASForPicker dismissWithClickedButtonIndex:0 animated:YES]; [self presentModalViewController:picker animated:YES];

以上就是single html page - html charts - 的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏