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 ReportIncome - Expense SpreadSheet
Month | Income | Expense | Balance |
"];
} else {
temp=[arrayForIncomeExpense objectAtIndex:i];
[htmlString appendString:(i%2==0)?@"":@"
"];
[htmlString appendFormat:@"%@ | ",[self getMonthYear:[temp valueForKey:@"MonthID"]]];
[htmlString appendFormat:@"%15.2lf | ",[[temp valueForKey:@"Income"] doubleValue]];
[htmlString appendFormat:@"%15.2lf | ",[[temp valueForKey:@"Expense"] doubleValue]];
[htmlString appendFormat:@"%15.2lf | ",[[temp valueForKey:@"Income"] doubleValue]-[[temp valueForKey:@"Expense"] doubleValue]];
[htmlString appendString:@"
"];
}
}
[htmlString appendString:@"