diff --git a/application/views/reports/graphs/line.php b/application/views/reports/graphs/line.php index 89a682850..1232257b5 100644 --- a/application/views/reports/graphs/line.php +++ b/application/views/reports/graphs/line.php @@ -9,7 +9,14 @@ }; // We are setting a few options for our chart and override the defaults - var options = { + var options = { + + // Specify a fixed width for the chart as a string (i.e. '100px' or '50%') +// width: '80%', + + // Specify a fixed height for the chart as a string (i.e. '100px' or '50%') +// height: '80%', + // Draw the line chart points showPoint: true, diff --git a/css/reports.css b/css/reports.css index ac5ea74f4..d2f9d563c 100644 --- a/css/reports.css +++ b/css/reports.css @@ -27,6 +27,7 @@ .ct-chart { text-align: center; + margin: 0 auto; } /* style chart X axis labels to be rotated of 60 degrees */ @@ -48,7 +49,7 @@ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } -/* set all lables to be black with font size 1.2rem */ +/* set all labels to be black with font size 1.2rem */ .ct-label { fill: rgba(0,0,0,1);