Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Format as per flot requirements
- var flotData = new[]
- {
- new {label = "Quantity Required", data = partAvailability.Select(x => new[] {x.TimeStamp, x.QuantityRequired})},
- new {label = "Quantity Available", data = partAvailability.Select(x => new[] {x.TimeStamp, x.QuantityAvailable})}
- };
- // Timestamp created as follows
- private static long GetJavascriptTimestamp(DateTime date)
- {
- return (long)date.Subtract(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)).TotalMilliseconds;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement