FullCalendar-v4 allDay events not rendering - javascript

I have managed to get my recurring events to show up on the calendar, but my single allDay events will not render and I believe its a field problem.
I've tried making the event's start time an iso date which doesn't seem to matter as my recurring events are being saved as a string.
This is a recurring event and shows up on the calendar
{
"_id" : ObjectId("5d4af079f91ff532f8fc0385"),
"daysOfWeek" : [
1,
2,
3
],
"locationId" : ObjectId("5d28cad23f49646797e05adc"),
"allDay" : true,
"start" : "2019-08-07",
"end" : "2019-08-07",
"startRecur" : "2019-08-07",
"endRecur" : "2019-08-31",
"title" : "Change Bulbs",
"backgroundColor" : "rgb(87, 87, 244)",
"source" : null,
"interval" : "Weekly",
"category" : "Facility",
"monday" : true,
"tuesday" : true,
"wednesday" : true,
"completed" : false,
"frequency" : null,
"__v" : 0
}
this is a single event that showed up in FC-v3 but wont in v4
{
"_id" : ObjectId("5d4b455e121f726f510f2b5c"),
"daysOfWeek" : [],
"batchId" : ObjectId("5d28f52d823083adfc6e8c4d"),
"locationId" : ObjectId("5d28cad23f49646797e05adc"),
"end" : null,
"startRecur" : "",
"endRecur" : "",
"allDay" : true,
"start" : "2019-08-08",
"title" : "First Transplant",
"backgroundColor" : "rgb(87, 87, 244)",
"interval" : "Single Event",
"category" : "Cultivation",
"monday" : false,
"tuesday" : false,
"wednesday" : false,
"thursday" : false,
"friday" : false,
"saturday" : false,
"sunday" : false,
"completed" : false,
"__v" : 0
}
so i made an event with the proper ISO Date and it failed as well
{
"_id" : ObjectId("5d4b4f9a56114f747c7ddcef"),
"daysOfWeek" : [],
"batchId" : ObjectId("5d28f52d823083adfc6e8c4d"),
"locationId" : ObjectId("5d28cad23f49646797e05adc"),
"allDay" : true,
"start" : ISODate("2019-08-08T00:00:00.000Z"),
"end" : null,
"title" : "IMP",
"backgroundColor" : "rgb(87, 87, 244)",
"interval" : "Single Event",
"category" : "Cultivation",
"monday" : false,
"tuesday" : false,
"wednesday" : false,
"thursday" : false,
"friday" : false,
"saturday" : false,
"sunday" : false,
"completed" : false,
"__v" : 0
}
comp.ts code
createEvent(form) {
if (form.valid) {
this.newEvent.category = 'Cultivation';
this.newEvent.completed = false;
this.newEvent.allDay = true;
this.newEvent.locationId = this.selectedLocation._id;
this.newEvent.batchId = this.selectedBatch._id;
this.newEvent.start = moment(this.newEvent.start).utc();
this.newEvent.start.hours(0).minutes(0).seconds(0);
// this.newEvent.source = null;
// this.newEvent.daysOfWeek = [];
if (this.newEvent.interval === 'Single Event') {
this.newEvent.end = null;
// this.newEvent.startRecur = '';
// this.newEvent.endRecur = '';
this.newEvent.monday = false;
this.newEvent.tuesday = false;
this.newEvent.wednesday = false;
this.newEvent.thursday = false;
this.newEvent.friday = false;
this.newEvent.saturday = false;
this.newEvent.sunday = false;
}
// if ( this.newEvent.interval === 'Daily' || this.newEvent.interval === 'Weekly'){
// }
if (this.newEvent.interval === 'Weekly') {
this.newEvent.startRecur = this.newEvent.start;
this.newEvent.end = this.newEvent.start;
this.newEvent.frequency = NaN;
if (this.newEvent.sunday) {
this.newEvent.daysOfWeek.push(0);
}
if (this.newEvent.monday) {
this.newEvent.daysOfWeek.push(1);
}
if (this.newEvent.tuesday) {
this.newEvent.daysOfWeek.push(2);
}
if (this.newEvent.wednesday) {
this.newEvent.daysOfWeek.push(3);
}
if (this.newEvent.thursday) {
this.newEvent.daysOfWeek.push(4);
}
if (this.newEvent.friday) {
this.newEvent.daysOfWeek.push(5);
}
if (this.newEvent.saturday) {
this.newEvent.daysOfWeek.push(6);
}
}
...sub to database

setting "daysOfWeek" : [], means that you are telling the calendar it cannot show the event on any day of the week. That's why it won't appear.
Simply don't set that option in your code for single events, and it will be fine:
{
"_id" : ObjectId("5d4b455e121f726f510f2b5c"),
"batchId" : ObjectId("5d28f52d823083adfc6e8c4d"),
"locationId" : ObjectId("5d28cad23f49646797e05adc"),
"end" : null,
"startRecur" : "",
"endRecur" : "",
"allDay" : true,
"start" : "2019-08-08",
"title" : "First Transplant",
"backgroundColor" : "rgb(87, 87, 244)",
"interval" : "Single Event",
"category" : "Cultivation",
"monday" : false,
"tuesday" : false,
"wednesday" : false,
"thursday" : false,
"friday" : false,
"saturday" : false,
"sunday" : false,
"completed" : false,
"__v" : 0
}
Demo: https://codepen.io/ADyson82/pen/LwdgeG
P.S. There's nothing wrong with your date string.

Related

updating multiple objects in an array from multi object req.body

Ok, I have this collection:
{
"_id" : ObjectId("59baa8af86e5df3984674639"),
"centralPath" : "C:\\Users\\konrad.sobon\\OneDrive - HOK\\GoogleDrive\\Work\\DynamoWork\\142_SeatManifestGenerator\\RVT2018\\CBUEC_HOK_IN-central.rvt",
"totalFamilies" : 31,
"unusedFamilies" : 18,
"oversizedFamilies" : 0,
"inPlaceFamilies" : 0,
"createdBy" : "konrad.sobon",
"createdOn" : ISODate("2017-09-14T20:19:09.525Z"),
"families" : [
{
"name" : "Spot Elevation - Target Filled_HOK_I",
"size" : "1.2Mb",
"sizeValue" : 1200000,
"instances" : 0,
"elementId" : 6158,
"isFailingChecks" : true,
"isDeleted" : false,
"_id" : ObjectId("59bae43d2720015998392905"),
"tasks" : [],
"parametersCount" : 0,
"nestedFamilyCount" : 1,
"voidCount" : 0,
"refPlaneCount" : 2,
"arrayCount" : 0
},
{
"name" : "Section Head - Filled_HOK_I",
"size" : "140kb",
"sizeValue" : 145760,
"instances" : 0,
"elementId" : 8762,
"isFailingChecks" : true,
"isDeleted" : false,
"_id" : ObjectId("59bae43d2720015998392904"),
"tasks" : [],
"parametersCount" : 0,
"nestedFamilyCount" : 1,
"voidCount" : 0,
"refPlaneCount" : 3,
"arrayCount" : 0
},
{
"name" : "Railing Tag_HOK_I",
"size" : "244kb",
"sizeValue" : 249856,
"instances" : 0,
"elementId" : 12426,
"isFailingChecks" : true,
"isDeleted" : false,
"_id" : ObjectId("59bae43d2720015998392903"),
"tasks" : [],
"parametersCount" : 3,
"nestedFamilyCount" : 1,
"voidCount" : 0,
"refPlaneCount" : 2,
"arrayCount" : 0
},
{
"name" : "Fixed",
"size" : "316kb",
"sizeValue" : 323584,
"instances" : 0,
"elementId" : 3499132,
"isFailingChecks" : true,
"isDeleted" : false,
"_id" : ObjectId("59bae43d27200159983928e7"),
"tasks" : [],
"parametersCount" : 4,
"nestedFamilyCount" : 2,
"voidCount" : 0,
"refPlaneCount" : 18,
"arrayCount" : 0
}
],
"__v" : 0
}
What I am trying to do is send a request to update certain "families" in that collection. I have an array of these Family objects looking like this:
{"key": [
{
"name" : "New Spot Elevation - Target Filled_HOK_I",
"size" : "1.2Mb",
"sizeValue" : 1200000,
"instances" : 0,
"elementId" : 6158,
"isFailingChecks" : true,
"isDeleted" : false,
"Id" : "59bae43d2720015998392905",
"tasks" : [],
"parametersCount" : 0,
"nestedFamilyCount" : 1,
"voidCount" : 0,
"refPlaneCount" : 2,
"arrayCount" : 0
},
{
"name" : "New Section Head - Filled_HOK_I",
"size" : "140kb",
"sizeValue" : 145760,
"instances" : 0,
"elementId" : 8762,
"isFailingChecks" : true,
"isDeleted" : false,
"Id" : "59bae43d2720015998392904",
"tasks" : [],
"parametersCount" : 0,
"nestedFamilyCount" : 1,
"voidCount" : 0,
"refPlaneCount" : 3,
"arrayCount" : 0
}
]}
Now, I need to be able to find and update each of the specified families. I thought that i can just iterate over the incoming array (I am sending it in a req.body), and then make an array of Ids that would need to be updated so i can use the $in operator in mongo. After that, i thought that I can use the id, to retrieve the properties that I am interested and just use $set to get them updated. My attempt here:
module.exports.updateMultipleFamilies = function (req, res) {
var id = req.params.id;
var famIds = []; // [ObjectId]
var newFamilies = {}; // {"id_string" : family}
for(var key in req.body) {
if(req.body.hasOwnProperty(key)){
for(var i = 0; i < req.body[key].length; i++){
var family = req.body[key][i];
newFamilies[family.Id] = family;
famIds.push(mongoose.Types.ObjectId(family.Id));
}
}
}
Families
.updateMany(
{_id: id, 'families._id': {$in: famIds}},
{$set: {'name': newFamilies["current_document_id_help"].name}}, function(err, result){
if(err) {
res
.status(400)
.json(err);
} else {
res
.status(202)
.json(result);
}
}
)
};
Edit:
So i tried a different approach with the bulkWrite call. It doesn't give me errors but it also doesn't update anything. Any ideas why?
module.exports.updateMultipleFamilies1 = function (req, res) {
var id = req.params.id;
var bulkOps = [];
for(var key in req.body) {
if(req.body.hasOwnProperty(key)){
bulkOps = req.body[key].map(function(item){
return {
'updateOne': {
'filter': {'_id': id, 'families._id': mongoose.Types.ObjectId(item.Id)},
'update': {'$set': {'families.$.name': item.name}},
'upsert': false
}
}
})
}
}
Families.collection
.bulkWrite(
bulkOps,
{'ordered': true, w:1}, function(err, result){
if(err) {
res
.status(400)
.json(err);
} else {
res
.status(202)
.json(result);
}
})
};
you need to take the families array , change the code in the app and then update the families array again.
or you can try do {$set:{'families.$.name':newFamilies["current_document_id_help"].name}
}
but im not sure if that wont update all you families
first solution:
var id = req.params.id;
yourCollation.findById(id,function(err, doc){
if(req.body.key && req.body.key.constructor === Array){
for(var i = 0; i < req.body.key.length; i++){
for(var x in doc.families ){
if(family.id === doc.families[x].id){
doc.families[x] = family;
}
}
}
}
doc.save()
})

$multiply only supports numeric types, not array

I am trying to use the $multiply operator in MongoDB.
STEP 1
db.message1064sd_00011_3744.aggregate([
{$project : {
"prices.00026" : 1,
priceReal : {
price : "$prices.00026",
}
}},
{ $match : { "priceReal.price" : {$gt : 30 } } },
{ $limit : 1 }
])
I am getting the results
{
"result" : [
{
"_id" : "54884_00011_001",
"prices" : {
"00026" : 34.43
},
"priceReal" : {
"price" : 34.43
}
}
],
"ok" : 1
}
STEP 2
But, when I use $multiply, I get
$multiply only supports numeric types, not array
db.message1064sd_00011_3744.aggregate([
{$project : {
"prices.00026" : 1,
priceReal : {
price : { $multiply : ["$prices.00026", 1 ] },
}
}},
{ $match : { "priceReal.price" : {$gt : 30 } } },
{ $limit : 1 }
])
Help me anybody
Example document which I can get from db.message1064sd_00011_3744.findOne()
{
"_id" : "25906_00011_001",
"Message_ID" : 25906,
"Subdivision_ID" : 3747,
"Sub_Class_ID" : 6300,
"Checked" : 1,
"Nomencl_ID" : "10000014597",
"manufacturer_ID" : "П1170",
"disableIfZero" : 0,
"Discontinued" : 0,
"New" : 0,
"Nomencl_Group_ID" : 28,
"Nalichie" : "Мало",
"sort" : 99,
"Warehouse_ID" : "00011",
"ParentWarehouse_ID" : "00011",
"Kachestvo" : "001",
"Svobod_Nalichie" : "10",
"Svobod_sort" : 10,
"character" : [],
"prices" : {
"00014" : 1.51,
"00015" : 1.45,
"00016" : 1.41,
"00017" : 1.38,
"00018" : 1.35,
"00019" : 1.33,
"00021" : 1.31,
"00022" : 1.29,
"00023" : 1.28,
"00024" : 1.27,
"00025" : 1.25,
"00026" : 1.24
},
"price" : {
"Curr_ID" : 840,
"ChangePriceTime" : "2017-01-22 19:18:21",
"PriceUpDown" : "up",
"callPrice" : 0,
"Price_Value_RODP" : 1.24,
"Price_Value_RUR" : 72.04000000000001
},
"sName" : "чип epson m2300{m2400{mx20 8k (elp, китай)",
"sNomencl_ID" : "10000014597",
"sNomencl_Articul_Proizvod" : "elp-ch-e2300-8k",
"sItemID" : "elp-ch-e2300-8k",
"EnglishName" : "cZ277",
"begin_vl" : 121,
"Hidden_URL" : "/netshop/cZ079/cZ270/cZ277/",
"Checked_Subdivision" : 1
}
In case you want to ensure that only data from a certain data type enters your result set, for example in an aggregate query, you can add the following filter to the match:
{$match: {
// ... your query
, "priceReal.price": { $type : "double" }
}

How to query single document which contains specific value of some element in array of arrays MongoDB

I have an document that contains array of arrays i am using embedded document in MongoDb.Say i have collection name Orders looks like:-
"_id" : "HjPGrdkffg7dQPtiX",
"ListOrdersResult" : [
{
"Orders" : {
"Order" : [
{
"LatestShipDate" : "2016-01-13T18:29:59Z",
"OrderType" : "StandardOrder",
"PurchaseDate" : "2016-01-11T10:24:49Z",
"PaymentExecutionDetail" : {
"PaymentExecutionDetailItem" : {
"PaymentMethod" : "COD",
"Payment" : {
"CurrencyCode" : "INR",
"Amount" : "839.30"
}
}
},
"BuyerEmail" : "vccdbptpx2ssd74882#marketplace.amazon.in",
"AmazonOrderId" : "402-4031538-7451469",
"LastUpdateDate" : "2016-01-14T06:47:17Z",
"ShipServiceLevel" : "IN Exp Dom 2",
"NumberOfItemsShipped" : "1",
"OrderStatus" : "Shipped",
"SalesChannel" : "Amazon.in",
"ShippedByAmazonTFM" : "false",
"LatestDeliveryDate" : "2016-01-19T18:29:59Z",
"NumberOfItemsUnshipped" : "0",
"BuyerName" : "xyz",
"EarliestDeliveryDate" : "2016-01-13T18:30:00Z",
"OrderTotal" : {
"CurrencyCode" : "INR",
"Amount" : "839.30"
},
"IsPremiumOrder" : "false",
"EarliestShipDate" : "2016-01-11T18:30:00Z",
"MarketplaceId" : "A21TJRRWUN4KGVC",
"FulfillmentChannel" : "MFN",
"TFMShipmentStatus" : "Delivered",
"PaymentMethod" : "COD",
"ShippingAddress" : {
"StateOrRegion" : "HARYANA",
"City" : "GURGAON",
"Phone" : "9999999999",
"CountryCode" : "IN",
"PostalCode" : "122001",
"Name" : "Murthy",
"AddressLine1" : "House No. , J Block, Badshahpur"
},
"IsPrime" : "false",
"ShipmentServiceLevelCategory" : "Expedited"
},
{
"LatestShipDate" : "2016-01-13T18:29:59Z",
"OrderType" : "StandardOrder",
"PurchaseDate" : "2016-01-11T13:16:49Z",
"PaymentExecutionDetail" : {
"PaymentExecutionDetailItem" : {
"PaymentMethod" : "COD",
"Payment" : {
"CurrencyCode" : "INR",
"Amount" : "899.40"
}
}
},
"BuyerEmail" : "xyz#marketplace.amazon.in",
"AmazonOrderId" : "402-2142159-5087541",
"LastUpdateDate" : "2016-01-14T06:47:15Z",
"ShipServiceLevel" : "IN Exp Dom 2",
"NumberOfItemsShipped" : "1",
"OrderStatus" : "Cancel",
"SalesChannel" : "Amazon.in",
"ShippedByAmazonTFM" : "false",
"LatestDeliveryDate" : "2016-01-19T18:29:59Z",
"NumberOfItemsUnshipped" : "0",
"BuyerName" : "demo prakash",
"EarliestDeliveryDate" : "2016-01-13T18:30:00Z",
"OrderTotal" : {
"CurrencyCode" : "INR",
"Amount" : "899.40"
},
"IsPremiumOrder" : "false",
"EarliestShipDate" : "2016-01-11T18:30:00Z",
"MarketplaceId" : "A21TJEUUN4WGV",
"FulfillmentChannel" : "MFN",
"TFMShipmentStatus" : "Delivered",
"PaymentMethod" : "COD",
"ShippingAddress" : {
"StateOrRegion" : "DELHI",
"City" : "DELHI",
"Phone" : "99999999",
"CountryCode" : "IN",
"PostalCode" : "110038",
"Name" : "Demo prakash",
"AddressLine1" : "Hn 638 gali n 04 Wazirabad new delhi"
},
"IsPrime" : "false",
"ShipmentServiceLevelCategory" : "Expedited"
},
}
]
},
"CreatedBefore" : "2015-03-19T06:17:59Z"
}
],
"ResponseMetadata" : {
"RequestId" : "cf94645e-ada7-4ec6-b161-a97d07a77817"
},
"seller_user_id" : "yg4e34ccodzf3GPR2",
}
So as you can see this is the single document that contains the whole data of array i want to fetch the orders whose status is cancel from this order array.
So for that i have use :-
var orderDetails =
orders.find({"ListOrdersResult.Orders.Order":{$elemMatch:
{ OrderStatus:"Canceled"}}}).fetch();
Also i tried with:-
orders.find({"ListOrdersResult.Orders.Order.OrderStatus":'Canceled'}).fetch();
So this will return the whole document that contains status as canceled and other as well but i want only selected result from the document that contains status as pending.
So is there any way in mongoDb to query a selected value from a single document that contains nested array of arrays as object.
Or I need to staore the values into diff diff documents thats only the solution.
Any help would be appriciated please contribute
Thanks!
You can go with any meteor aggregate package. You can use match and then group the data then send it to client-side.Like :
var ordersLines = orders.aggregate([
{$unwind : "$ListOrdersResult.Orders.Order"},
{$match : { OrderStatus:"Canceled"} },
{$project : {
OrderType : '$ListOrdersResult.Orders.Order.OrderType'
....
}
}
]);
return ordersLines;
But I suggest you go with a different document.

unable to fetch value from JSON array in javascript

I'm unable to fetch JSON value to check if the person is wearing glasses while taking photo, the value relies in four arrays: photos, tags, attributes and glasses, I want to check the value "value" is true or false. I use alert() to test if value fetched but nothing comes out. I don't know which part gets wrong
I use JavaScript to fetch the JSON value as follows:
var facesDet = $.getJSON( APIdetect, function() {
console.log( "success" );
console.log(facesDet);
})
.done(function (facesDet, tid) {
var VALUEIWANT = facesDet.photos[0].tags[0].attributes[0].gender[0].value;
});
The JSON value looks as follows:
{
"photos" : [
{
"url" : "http://tinyurl.com/673cksr",
"pid" : "F#0c95576847e9cd7123f1e304476b59ae_59ec9bb2ad15f",
"width" : 375,
"height" : 409,
"tags" : [
{
"tid" : "TEMP_F#0c95576847e9cd7123f1e304b1dcbe53_59ec9bb2ad15f_56.53_40.83_0_1",
"recognizable" : true,
"confirmed" : false,
"manual" : false,
"width" : 30.67,
"height" : 28.12,
"center" : { "x" : 56.53, "y" : 40.83},
"eye_left" : { "x" : 66.93, "y" : 33.99},
"eye_right" : { "x" : 51.73, "y" : 33.99},
"yaw" : -16,
"roll" : 0,
"pitch" : 0,
"attributes" : {
"face" : { "value" : "true", "confidence" : 82 },
"gender" : { "value" : "female", "confidence" : 80 },
"glasses":{"value" : "true", "confidence" : 100},
"dark_glasses":{"value" : "true", "confidence" : 72},
"smiling":{"value" : "false", "confidence" : 35}
}
}
]
}
],
"status" : "success",
"usage" : {
"used" : 1,
"remaining" : 99,
"limit" : 100,
"reset_time_text" : "Fri, 21 September 2012 12:57:19 +0000",
"reset_time" : 1348232239
}
}
You tryed to take value from gender like from array:
var VALUEIWANT = facesDet.photos[0].tags[0].attributes[0].gender[0].value;
But in your json its object, so you should use:
var VALUEIWANT = facesDet.photos[0].tags[0].attributes.gender.value;
Your access is wrong. You have an object, but you treat it like an array
var VALUEIWANT = facesDet.photos[0].tags[0].attributes[0].gender[0].value;
// ^^^ and ^^^
right access:
var VALUEIWANT = facesDet.photos[0].tags[0].attributes.gender.value;
data:
"attributes" : {
"face" : { "value" : "true", "confidence" : 82 },
"gender" : { "value" : "female", "confidence" : 80 },
"glasses":{"value" : "true", "confidence" : 100},
"dark_glasses":{"value" : "true", "confidence" : 72},
"smiling":{"value" : "false", "confidence" : 35}
}
try this one.
facesDet.photos[0].tags[0].attributes.gender.value
getJSON return a promise not the response, you need to use this code:
$.getJSON( APIdetect, function(facesDet) {
console.log( "success" );
console.log(facesDet);
})

jqplot 1 month failing

For some reason jqplot is not rendering the label correctly and, ultimately, shoving all the line points at the end of the chart. Here is what it looks like...
Here is what it looks like:
Below is the JS including the plot point...
var _a212064_plot_properties;
$(document).ready(function ()
{
_a212064_plot_properties =
{
"legend" :
{
"show" : true
},
"series" : [
{
"label" : "Current Year"
},
{
"label" : "Previous Year"
}
],
"axes" :
{
"xaxis" :
{
"tickOptions" :
{
"formatString" : "%b"
},
"label" : "Date",
"min" : "07\/01\/2012 00:00:00",
"tickInterval" : "1 Month",
"renderer" : $.jqplot.DateAxisRenderer,
"properties" : "xaxis"
},
"yaxis" :
{
"tickRenderer" : $.jqplot.CanvasAxisTickRenderer,
"tickOptions" :
{
"angle" : -30,
"labelPosition" : "middle"
},
"labelRenderer" : $.jqplot.CanvasAxisLabelRenderer,
"labelOptions" :
{
"fontSize" : "13pt"
},
"label" : "Organic Visits",
"properties" : "yaxis"
}
},
"highlighter" :
{
"bringSeriesToFront" : true,
"tooltipLocation" : "n",
"tooltipOffset" : "0",
"formatString" : "Point <\/span>%s: %s<\/strong><\/div>"
},
"cursor" :
{
"show" : true,
"zoom" : true
}
}
$.jqplot.config.enablePlugins = true;
$.jqplot.config.defaultHeight = 300;
$.jqplot.config.defaultWidth = 400;
_a212064 = $.jqplot("a212064", [[[1341115200, 2330], [1343793600, 2768], [1346472000, 2462], [1349064000, 2331], [1351742400, 2198], [1354338000, 2258], [1357016400, 2763], [1359694800, 2399], [1362114000, 2643], [1364788800, 1550], [1367380800, 621], [1370059200, 356]], [[1341115200, 4654], [1343793600, 4105], [1346472000, 4347], [1349064000, 4163], [1351742400, 3849], [1354338000, 5579], [1357016400, 4908], [1359694800, 3690], [1362114000, 2314], [1364788800, 3173], [1367380800, 2608], [1370059200, 2330]]], _a212064_plot_properties);
}
);
Any ideas? Getting the dates into that label is the last thing I can't figure out.
Thanks!
you need to change the parameters for xaxis.
Here is the working copy of your code: Jsfiddle link
var _a212064_plot_properties;
$(document).ready(function ()
{
_a212064_plot_properties =
{
"legend" :
{
"show" : true
},
"series" : [
{
"label" : "Current Year"
},
{
"label" : "Previous Year"
}
],
"axes" :
{
"xaxis" :
{
"label" : "Date",
"renderer" : $.jqplot.DateAxisRenderer
},
"yaxis" :
{
"tickRenderer" : $.jqplot.CanvasAxisTickRenderer,
"tickOptions" :
{
"angle" : -30,
"labelPosition" : "middle"
},
"labelRenderer" : $.jqplot.CanvasAxisLabelRenderer,
"labelOptions" :
{
"fontSize" : "13pt"
},
"label" : "Organic Visits"
}
},
"highlighter" :
{
"bringSeriesToFront" : true,
"tooltipLocation" : "n",
"tooltipOffset" : "0",
"formatString" : "Point <\/span>%s: %s<\/strong><\/div>"
},
"cursor" :
{
"show" : true,
"zoom" : true
}
}
$.jqplot.config.enablePlugins = true;
$.jqplot.config.defaultHeight = 300;
$.jqplot.config.defaultWidth = 400;
_a212064 = $.jqplot("a212064", [[[1341115200, 2330], [1343793600, 2768], [1346472000, 2462], [1349064000, 2331], [1351742400, 2198], [1354338000, 2258], [1357016400, 2763], [1359694800, 2399], [1362114000, 2643], [1364788800, 1550], [1367380800, 621], [1370059200, 356]], [[1341115200, 4654], [1343793600, 4105], [1346472000, 4347], [1349064000, 4163], [1351742400, 3849], [1354338000, 5579], [1357016400, 4908], [1359694800, 3690], [1362114000, 2314], [1364788800, 3173], [1367380800, 2608], [1370059200, 2330]]], _a212064_plot_properties);
}
);

Categories