diff options
author | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-05-13 13:57:06 +1200 |
---|---|---|
committer | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-05-13 13:57:06 +1200 |
commit | d1f3b6fa180d19e857e515a3b31840d6ee43ac09 (patch) | |
tree | 34716eff9b5462751802673e35f09bf8f503c440 /public | |
parent | 086905dc54cd91c01fa4730967302b182f807818 (diff) | |
download | manavis-d1f3b6fa180d19e857e515a3b31840d6ee43ac09.tar.gz manavis-d1f3b6fa180d19e857e515a3b31840d6ee43ac09.tar.bz2 manavis-d1f3b6fa180d19e857e515a3b31840d6ee43ac09.tar.xz manavis-d1f3b6fa180d19e857e515a3b31840d6ee43ac09.zip |
Remove definedness chart
The new parsing system is robust enough to eliminate its persistent need
Diffstat (limited to 'public')
-rw-r--r-- | public/index.html | 3 | ||||
-rw-r--r-- | public/js/mv/chart.js | 20 |
2 files changed, 0 insertions, 23 deletions
diff --git a/public/index.html b/public/index.html index 1aa232a..6ec4cf8 100644 --- a/public/index.html +++ b/public/index.html @@ -30,9 +30,6 @@ <div id="type-chart"> <h3>Instance breakdown by Type <a class="reset" style="display: none;" href="javascript:mv.charts.type.filterAll();dc.redrawAll();">clear</a></h3> </div> - <div id="def-chart"> - <h3>Definedness of records <span class="help" title="If logs are missing between server boot and the logs provided, not all information will be available for all records. Definedness of records falls into three categories. Records with undefined data; records with well defined data, but mixed in with records having undefined data, limiting validity of inferences; and records after any uncertain times, which are fully well defined. It is highly recommended that you filter results to only include records which are in fully well defined times; however, this may not always be possible.">[?]</span> <a class="reset" style="display: none;" href="javascript:mv.charts.def.filterAll();dc.redrawAll();">clear</a></h3> - </div> </div> </div> <div id="main"> diff --git a/public/js/mv/chart.js b/public/js/mv/chart.js index 1c1fd91..be0740b 100644 --- a/public/js/mv/chart.js +++ b/public/js/mv/chart.js @@ -23,18 +23,6 @@ var mv = function(mv) { ; mv.charts.wpn = pie(monoGroup(dc.pieChart("#wpn-chart"), "wpn")) ; - mv.charts.def = pie(monoGroup(dc.pieChart("#def-chart"), "def")) - .label(function(d) { return defLevelVerbose(d.data.key); }) - .title(function(d) { return defLevelVerbose(d.data.key) + ": " + d.value; }) - .colorAccessor(function(d) { return d.data.key; }) - .colorCalculator(function(k) { switch(k) { - case 0: return "#fd350d"; - case 1: return "#fdae6b"; - case 2: return "#6baed6"; - default: throw "Definition chart: Color access key out of range!"; - }}) - .filter(2) - ; mv.charts.map = monoGroup(margined(wide(dc.bubbleChart("#map-chart"))), "map") .height(500) .colorCalculator(d3.scale.category20c()) @@ -69,14 +57,6 @@ var mv = function(mv) { } return r; } - function defLevelVerbose(level) { - switch (level) { - case 0: return "Undefined"; - case 1: return "Mixed"; - case 2: return "Defined"; - default: console.log(d, d.data); throw "Unknown definedness case (" + d.data.key + "); this shouldn't happen"; - } - } return charter; }(); function wide(chart) { |