Removed Commodity v1 projection from EDDN Status

This commit is contained in:
AnthorNet 2015-12-21 16:23:13 +01:00
parent 09779528fe
commit 04321747e9

View File

@ -215,6 +215,9 @@
if(schema.substr(schema.length - 4) == 'test') if(schema.substr(schema.length - 4) == 'test')
return; return;
if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity1')
return;
// Check series exists // Check series exists
if(!chart.get(makeSlug(schema))) if(!chart.get(makeSlug(schema)))
{ {
@ -225,6 +228,8 @@
name = 'Commodity v2'; name = 'Commodity v2';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnshipyard1') else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnshipyard1')
name = 'Shipyard v1'; name = 'Shipyard v1';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnoutfitting1')
name = 'Outfitting v1';
else else
name = schema; name = schema;
@ -233,13 +238,14 @@
name: name, name: name,
data: [] data: []
}); });
/*
if(name == 'Commodity v2') if(name == 'Commodity v2')
chart.addSeries({ chart.addSeries({
id: makeSlug(schema + '(Projected)'), id: makeSlug(schema + '(Projected)'),
name: name + ' (Projected * 55.0287)', name: name + ' (Projected * 55.0287)',
data: [] data: []
}); });
*/
} }
// Add data // Add data
@ -248,11 +254,13 @@
serie.addPoint({x: date, y: parseInt(hits)}, false); serie.addPoint({x: date, y: parseInt(hits)}, false);
// Add projected // Add projected
/*
if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity2') if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity2')
{ {
serie = chart.get(makeSlug(schema + '(Projected)')); serie = chart.get(makeSlug(schema + '(Projected)'));
serie.addPoint({x: date, y: Math.round(parseInt(hits)*55.0287)}, false); serie.addPoint({x: date, y: Math.round(parseInt(hits)*55.0287)}, false);
} }
*/
// Check series exists // Check series exists
if(!chartStacked.get(makeSlug(schema))) if(!chartStacked.get(makeSlug(schema)))
@ -264,9 +272,12 @@
name = 'Commodity v2'; name = 'Commodity v2';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnshipyard1') else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnshipyard1')
name = 'Shipyard v1'; name = 'Shipyard v1';
else if(makeSlug(schema) == 'httpschemaselite-marketsneteddnoutfitting1')
name = 'Outfitting v1';
else else
name = schema; name = schema;
/*
if(name == 'Commodity v2' && !chartStacked.get(makeSlug(schema + '(Projected)'))) if(name == 'Commodity v2' && !chartStacked.get(makeSlug(schema + '(Projected)')))
chartStacked.addSeries({ chartStacked.addSeries({
id: makeSlug(schema + '(Projected)'), id: makeSlug(schema + '(Projected)'),
@ -274,8 +285,9 @@
data: [] data: []
}); });
else else
*/
{ {
if(name != 'Commodity v2') //if(name != 'Commodity v2')
chartStacked.addSeries({ chartStacked.addSeries({
id: makeSlug(schema), id: makeSlug(schema),
name: name, name: name,
@ -287,6 +299,7 @@
// Add projected // Add projected
/*
if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity2') if(makeSlug(schema) == 'httpschemaselite-marketsneteddncommodity2')
{ {
serie = chartStacked.get(makeSlug(schema + '(Projected)')); serie = chartStacked.get(makeSlug(schema + '(Projected)'));
@ -294,6 +307,7 @@
} }
// Add data // Add data
else else
*/
{ {
serie = chartStacked.get(makeSlug(schema)); serie = chartStacked.get(makeSlug(schema));