Skip to content

Commit

Permalink
#25 use graph type 'none' to disable graph drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyrne01 committed Feb 4, 2016
1 parent f2722d9 commit 1f5c3b2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/data/html/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ <h3 data-l10n-id="ui_title"></h3>
<option value="1" data-l10n-id="graphType_options.Bar">Bar</option>
<option value="2" data-l10n-id="graphType_options.Radar">Radar</option>
<option value="3" data-l10n-id="graphType_options.PolarArea">PolarArea</option>
<option value="4" data-l10n-id="graphType_options.None">None</option>
</select>
</td>
</tr>
Expand Down
3 changes: 3 additions & 0 deletions addon/data/js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ function updateCanvas(graphData) {
}

myNewChart = new Chart(document.getElementById("canvas").getContext("2d")).PolarArea(data, options);

}else{
myNewChart.destroy();
}

// draw legend
Expand Down
1 change: 1 addition & 0 deletions addon/locale/en-GB.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ graphType_options.Line=Line
graphType_options.Bar=Bar
graphType_options.Radar=Radar
graphType_options.PolarArea=Polar Area
graphType_options.None=None

memoryInterval_title=How many seconds between memory data collection?
memoryTracking_title=Enable memory usage tracking?
Expand Down
1 change: 1 addition & 0 deletions addon/locale/en-US.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ graphType_options.Line=Line
graphType_options.Bar=Bar
graphType_options.Radar=Radar
graphType_options.PolarArea=Polar Area
graphType_options.None=None

memoryInterval_title=How many seconds between memory data collection?
memoryTracking_title=Enable memory usage tracking?
Expand Down
6 changes: 6 additions & 0 deletions addon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
}, {
"value": "2",
"label": "Radar"
}, {
"value": "3",
"label": "PolarArea"
}, {
"value": "4",
"label": "None"
}]
}]
}

0 comments on commit 1f5c3b2

Please sign in to comment.