From Dark and Darker Wiki
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
var gridColor = '<!--{$gridColor|escape:'quotes'}-->'; | var gridColor = '<!--{$gridColor|escape:'quotes'}-->'; | ||
var axisColor = '<!--{$axisColor|escape:'quotes'}-->'; | var axisColor = '<!--{$axisColor|escape:'quotes'}-->'; | ||
var fontColor = '<!--{$fontColor|escape:'quotes'}-->'; | |||
if (color == "") { | if (color == "") { | ||
Line 23: | Line 24: | ||
} | } | ||
if (axisColor == "") { | |||
axisColor = gridColor; | axisColor = gridColor; | ||
} | } | ||
if (fontColor == "") { | |||
fontColor = gridColor; | |||
} | |||
var max = data[0]["x"]; | var max = data[0]["x"]; | ||
var min = max; | var min = max; | ||
Line 67: | Line 72: | ||
}, | }, | ||
ticks: { | ticks: { | ||
color: | color: fontColor | ||
} | } | ||
}, | }, | ||
Line 77: | Line 82: | ||
border: { | border: { | ||
color: axisColor | color: axisColor | ||
}, | |||
ticks: { | |||
color: fontColor | |||
} | } | ||
} | } |