From 0f01bffc738e082aacf6ae7ca81644d4bc1c33ac Mon Sep 17 00:00:00 2001 From: declerambaul Date: Mon, 2 Jul 2012 15:50:05 +0200 Subject: [PATCH] d3-test-line uses active editor graph as test case --- data/graphs/d3-test-line.json | 269 ++++++++++++++++++++++++++++++++--------- 1 files changed, 211 insertions(+), 58 deletions(-) diff --git a/data/graphs/d3-test-line.json b/data/graphs/d3-test-line.json index 15446c4..9f9d4c2 100644 --- a/data/graphs/d3-test-line.json +++ b/data/graphs/d3-test-line.json @@ -1,4 +1,197 @@ { + "chartType": "d3-chart", + "data": { + "id": "active_editors", + "lines": [], + "metrics": [ + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Total", + "scale": 1, + "source_col": 1, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "English", + "scale": 1, + "source_col": 2, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Commons", + "scale": 1, + "source_col": 3, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "French", + "scale": 1, + "source_col": 4, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "German", + "scale": 1, + "source_col": 5, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Russian", + "scale": 1, + "source_col": 6, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Japanese", + "scale": 1, + "source_col": 7, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Spanish", + "scale": 1, + "source_col": 8, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Italian", + "scale": 1, + "source_col": 9, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + }, + { + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Chinese", + "scale": 1, + "source_col": 10, + "source_id": "rc_active_editors_count", + "timespan": { + "end": null, + "start": null, + "step": null + }, + "transforms": [], + "type": "int", + "visible": true + } + ], + "palette": null + }, + "desc": "Aug 2010: Editors on Commons are no longer included in overall total, on the assumption that most also edit on one or more other projects. More precise detection of double counts between any projects and languages is in development (using Single User Login registration).", + "height": 250, + "id": "active_editors", + "name": "Active Wikimedia Editors for All Wikimedia Projects (5+ edits per month)", + "notes": "", "options": { "animatedZooms": true, "avoidMinZero": false, @@ -12,7 +205,17 @@ "axisTickSize": 3, "colorSaturation": 1, "colorValue": 0.5, - "colors": ["#FF0097", "#EF8158", "#83BB32", "#182B53", "#4596FF", "#553DC9", "#AD3238", "#00FFBC", "#F1D950"], + "colors": [ + "#FF0097", + "#EF8158", + "#83BB32", + "#182B53", + "#4596FF", + "#553DC9", + "#AD3238", + "#00FFBC", + "#F1D950" + ], "connectSeparatedPoints": false, "customBars": false, "dateWindow": null, @@ -65,7 +268,7 @@ "stackedGraph": false, "stepPlot": false, "strokePattern": null, - "strokeWidth": 4, + "strokeWidth": 3, "ticker": null, "title": null, "titleHeight": 18, @@ -85,61 +288,11 @@ "yAxisLabelWidth": 50, "yLabelWidth": 18, "yValueFormatter": null, - "ylabel": null - }, - "slug": "d3-test", - "name": "", - "desc": "", - "notes": "", - "width": "auto", - "height": 320, - "parents": ["root"], - "data": { - "palette": null, - "lines": [], - "metrics": [{ - "index": 0, - "label": "", - "type": "int", - "timespan": { - "start": null, - "end": null, - "step": null - }, - "disabled": false, - "source_id": "rc_active_editors_count", - "source_col": 1, - "color": "#00b2ff", - "visible": true, - "format_value": null, - "format_axis": null, - "transforms": [], - "scale": 1 - }, { - "index": 1, - "label": "", - "type": "int", - "timespan": { - "start": null, - "end": null, - "step": null - }, - "disabled": false, - "source_id": "rc_new_article_count", - "source_col": 1, - "color": "rgb(213,62,79)", - "visible": true, - "format_value": null, - "format_axis": null, - "transforms": [], - "scale": 1 - }] - }, - "callout": { - "enabled": true, - "metric_idx": 0, - "label": "" + "ylabel": "Number of Editors" }, - "chartType": "d3-line", - "id": "d3-test" + "parents": [ + "root" + ], + "slug": "active_editors", + "width": "auto" } -- 1.7.0.4