fixed scaling of graphs
This commit is contained in:
@ -78,8 +78,8 @@ $(function() {
|
|||||||
function graph_assesses() {
|
function graph_assesses() {
|
||||||
// MAKE THE GRAPH
|
// MAKE THE GRAPH
|
||||||
var width_ratio = .8;
|
var width_ratio = .8;
|
||||||
if (width_ratio > 1000){
|
if (getWidth()*width_ratio > 1000){
|
||||||
width_ratio = 1000;
|
width_ratio = 1000/getWidth();
|
||||||
}
|
}
|
||||||
var height_ratio = .7; // percent of height
|
var height_ratio = .7; // percent of height
|
||||||
|
|
||||||
|
@ -67,8 +67,8 @@ $(function() {
|
|||||||
// DRAW THE LINE GRAPH ------------------------------------------------------------------------------
|
// DRAW THE LINE GRAPH ------------------------------------------------------------------------------
|
||||||
function draw_line_graph() {
|
function draw_line_graph() {
|
||||||
var width_ratio = .8;
|
var width_ratio = .8;
|
||||||
if (width_ratio > 1000){
|
if (getWidth()*width_ratio > 1000){
|
||||||
width_ratio = 1000;
|
width_ratio = 1000/getWidth();
|
||||||
}
|
}
|
||||||
var height_ratio = .7; // percent of height
|
var height_ratio = .7; // percent of height
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user