From: declerambaul Date: Thu, 7 Jun 2012 14:42:46 +0000 (+0200) Subject: Added colors to commons graph. Confused about the ordering of the legend, not represe... X-Git-Url: http://git.less.ly:3516/?a=commitdiff_plain;h=99d318e52ead0c0f300353e5526c7dfd162ae8d1;p=kraken-ui.git Added colors to commons graph. Confused about the ordering of the legend, not represented in order of specification in the mertric array. Left index of Total at 0 and changed all others to 1, now at least the Total is on top. --- diff --git a/data/graphs/commons.json b/data/graphs/commons.json index 2b0fe0f..c8ce28e 100644 --- a/data/graphs/commons.json +++ b/data/graphs/commons.json @@ -1,316 +1,327 @@ { - "chartType": "dygraphs", + "chartType": "dygraphs", "data": { - "id": "commons", - "lines": [], + "id": "commons", + "lines": [], "metrics": [ { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "Total", - "scale": 1, - "source_col": 1, - "source_id": "rc_binary_files", + "color": "#182B53", + "disabled": false, + "format_axis": null, + "format_value": null, + "index": 0, + "label": "Total", + "scale": 1, + "source_col": 1, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "jpg", - "scale": 1, - "source_col": 2, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#FF0097", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "jpg", + "scale": 1, + "source_col": 2, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "png", - "scale": 1, - "source_col": 3, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#FF0097", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "png", + "scale": 1, + "source_col": 3, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "svg", - "scale": 1, - "source_col": 4, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#EF8158", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "svg", + "scale": 1, + "source_col": 4, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "ogg", - "scale": 1, - "source_col": 5, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#1A9380", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "ogg", + "scale": 1, + "source_col": 5, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "gif", - "scale": 1, - "source_col": 6, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#FF87FF", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "gif", + "scale": 1, + "source_col": 6, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "tif", - "scale": 1, - "source_col": 7, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#B64926", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "tif", + "scale": 1, + "source_col": 7, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "pdf", - "scale": 1, - "source_col": 8, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#5DD2A4", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "pdf", + "scale": 1, + "source_col": 8, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "djvu", - "scale": 1, - "source_col": 9, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#FA0000", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "djvu", + "scale": 1, + "source_col": 9, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "ogv", - "scale": 1, - "source_col": 10, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#FFB719", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "ogv", + "scale": 1, + "source_col": 10, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true - }, + }, { - "disabled": false, - "format_axis": null, - "format_value": null, - "index": 0, - "label": "mid", - "scale": 1, - "source_col": 11, - "source_id": "rc_binary_files", + "disabled": false, + "color" : "#00675B", + "format_axis": null, + "format_value": null, + "index": 0, + "label": "mid", + "scale": 1, + "source_col": 11, + "source_id": "rc_binary_files", "timespan": { - "end": null, - "start": null, + "end": null, + "start": null, "step": null - }, - "transforms": [], - "type": "int", + }, + "transforms": [], + "type": "int", "visible": true } - ], + ], "palette": null - }, - "desc": "", - "height": 250, - "id": "commons", - "name": "Commons Binaries (log scale)", - "notes": "", + }, + "desc": "", + "height": 250, + "id": "commons", + "name": "Commons Binaries (log scale)", + "notes": "", "options": { - "animatedZooms": true, - "avoidMinZero": false, - "axis": null, - "axisLabelColor": "#666666", - "axisLabelFontSize": 11, - "axisLabelFormatter": null, - "axisLabelWidth": 50, - "axisLineColor": "#AAAAAA", - "axisLineWidth": 0.29999999999999999, - "axisTickSize": 3, - "colorSaturation": 1, - "colorValue": 0.5, + "animatedZooms": true, + "avoidMinZero": false, + "axis": null, + "axisLabelColor": "#666666", + "axisLabelFontSize": 11, + "axisLabelFormatter": null, + "axisLabelWidth": 50, + "axisLineColor": "#AAAAAA", + "axisLineWidth": 0.3, + "axisTickSize": 3, + "colorSaturation": 1, + "colorValue": 0.5, "colors": [ - "#FF0097", - "#EF8158", - "#83BB32", - "#182B53", - "#4596FF", - "#553DC9", - "#AD3238", - "#00FFBC", + "#FF0097", + "#EF8158", + "#83BB32", + "#182B53", + "#4596FF", + "#553DC9", + "#AD3238", + "#00FFBC", "#F1D950" - ], - "connectSeparatedPoints": false, - "customBars": false, - "dateWindow": null, - "delimiter": ",", - "digitsAfterDecimal": 2, - "displayAnnotations": false, - "drawPoints": true, - "drawXAxis": true, - "drawXGrid": true, - "drawYAxis": true, - "drawYGrid": true, - "errorBars": false, - "file": null, - "fillAlpha": 0.14999999999999999, - "fillGraph": false, - "fractions": false, - "gridLineColor": "#D8D8D8", - "gridLineWidth": 0.29999999999999999, - "hideOverlayOnMouseOut": false, - "highlightCircleSize": 4, - "includeZero": false, - "interactionModel": null, - "isZoomedIgnoreProgrammaticZoom": false, - "labels": null, - "labelsDiv": null, - "labelsDivStyles": null, - "labelsDivWidth": 250, - "labelsKMB": true, - "labelsKMG2": false, - "labelsSeparateLines": true, - "labelsShowZeroValues": true, - "legend": "always", - "logscale": true, - "maxNumberWidth": 30, - "panEdgeFraction": null, - "pixelsPerLabel": null, - "pixelsPerXLabel": null, - "pixelsPerYLabel": null, - "pointSize": 1, - "rangeSelectorHeight": 40, - "rangeSelectorPlotFillColor": "#A7B1C4", - "rangeSelectorPlotStrokeColor": "#808FAB", - "rightGap": 20, - "rollPeriod": 1, - "showLabelsOnHighlight": true, - "showRangeSelector": false, - "showRoller": false, - "sigFigs": null, - "sigma": 2, - "stackedGraph": false, - "stepPlot": false, - "strokePattern": null, - "strokeWidth": 3, - "ticker": null, - "title": null, - "titleHeight": 18, - "valueFormatter": null, - "valueRange": null, - "visibility": null, - "wilsonInterval": true, - "xAxisHeight": null, - "xAxisLabelFormatter": null, - "xAxisLabelWidth": 55, - "xLabelHeight": 18, - "xValueFormatter": null, - "xValueParser": null, - "xlabel": null, - "y2label": null, - "yAxisLabelFormatter": null, - "yAxisLabelWidth": 50, - "yLabelWidth": 18, - "yValueFormatter": null, + ], + "connectSeparatedPoints": false, + "customBars": false, + "dateWindow": null, + "delimiter": ",", + "digitsAfterDecimal": 2, + "displayAnnotations": false, + "drawPoints": true, + "drawXAxis": true, + "drawXGrid": true, + "drawYAxis": true, + "drawYGrid": true, + "errorBars": false, + "file": null, + "fillAlpha": 0.15, + "fillGraph": false, + "fractions": false, + "gridLineColor": "#D8D8D8", + "gridLineWidth": 0.3, + "hideOverlayOnMouseOut": false, + "highlightCircleSize": 4, + "includeZero": false, + "interactionModel": null, + "isZoomedIgnoreProgrammaticZoom": false, + "labels": null, + "labelsDiv": null, + "labelsDivStyles": null, + "labelsDivWidth": 250, + "labelsKMB": true, + "labelsKMG2": false, + "labelsSeparateLines": true, + "labelsShowZeroValues": true, + "legend": "always", + "logscale": true, + "maxNumberWidth": 30, + "panEdgeFraction": null, + "pixelsPerLabel": null, + "pixelsPerXLabel": null, + "pixelsPerYLabel": null, + "pointSize": 1, + "rangeSelectorHeight": 40, + "rangeSelectorPlotFillColor": "#A7B1C4", + "rangeSelectorPlotStrokeColor": "#808FAB", + "rightGap": 20, + "rollPeriod": 1, + "showLabelsOnHighlight": true, + "showRangeSelector": false, + "showRoller": false, + "sigFigs": null, + "sigma": 2, + "stackedGraph": false, + "stepPlot": false, + "strokePattern": null, + "strokeWidth": 3, + "ticker": null, + "title": null, + "titleHeight": 18, + "valueFormatter": null, + "valueRange": null, + "visibility": null, + "wilsonInterval": true, + "xAxisHeight": null, + "xAxisLabelFormatter": null, + "xAxisLabelWidth": 55, + "xLabelHeight": 18, + "xValueFormatter": null, + "xValueParser": null, + "xlabel": null, + "y2label": null, + "yAxisLabelFormatter": null, + "yAxisLabelWidth": 50, + "yLabelWidth": 18, + "yValueFormatter": null, "ylabel": "Number of Files (log)" - }, + }, "parents": [ "root" - ], - "slug": "commons", + ], + "slug": "commons", "width": "auto" }