Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Scripts/SmoothieChartResize.js @ 11053

Last change on this file since 11053 was 11020, checked in by mroscoe, 11 years ago

First check-in for Matt Roscoe. Major revision, multiple new files created and multiple files changed.

File size: 514 bytes
Line 
1/* Contains function to resize the Smoothie Charts on the page */
2
3/* Resizes each smoothieChart on the page to 90 percent of the width
4of the parent container and height is set here*/
5function resizeSmoothie() {
6  $(".smoothieChart").each(function () {
7    var chartParent = $(this).parent().parent();
8    var chartWidth = (chartParent.width() * .88);
9    $(this).parent().html('<canvas id="' + $(this).attr('id') + '" class="smoothieChart" height="110" width="' + chartWidth + '"></canvas>')
10  });
11}
Note: See TracBrowser for help on using the repository browser.