Color fixes, show lines for dense data.
This commit is contained in:
parent
17a1f749d1
commit
f61b9efea4
|
@ -102,7 +102,7 @@ function load_data(d) {
|
||||||
sub_times = [];
|
sub_times = [];
|
||||||
pdata = []
|
pdata = []
|
||||||
data = d;
|
data = d;
|
||||||
|
reset_chart();
|
||||||
pdata = data && JSON.parse(data);
|
pdata = data && JSON.parse(data);
|
||||||
|
|
||||||
var max_overall = 0;
|
var max_overall = 0;
|
||||||
|
@ -129,9 +129,13 @@ function load_data(d) {
|
||||||
ya = 2;
|
ya = 2;
|
||||||
|
|
||||||
// put the data into the chart format
|
// put the data into the chart format
|
||||||
chart_data.push({data: overall_times, label: "Overall Time"});
|
chart_data.push({data: overall_times, label: "Overall Time", color: "#804040"});
|
||||||
for(var i = 0; i < sub_times.length; i++) {
|
for(var i = 0; i < sub_times.length; i++) {
|
||||||
chart_data.push({data: sub_times[i], label: "Timer "+ (i+1), points: { show: true }, yaxis: ya});
|
var n = (sub_times[i].length/overall_times.length);
|
||||||
|
chart_data.push({data: sub_times[i], label: "Timer "+ (i+1),
|
||||||
|
lines: { show: (.9<n) },
|
||||||
|
points: { show: !(.9<n) },
|
||||||
|
yaxis: ya});
|
||||||
}
|
}
|
||||||
cur_options.legend.noColumns = Math.max(1,Math.round(chart_data.length / 10));
|
cur_options.legend.noColumns = Math.max(1,Math.round(chart_data.length / 10));
|
||||||
}
|
}
|
||||||
|
@ -209,7 +213,7 @@ try {
|
||||||
opts = JSON.parse(window.location.hash.substring(1));
|
opts = JSON.parse(window.location.hash.substring(1));
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
|
|
||||||
if (opts) {
|
if (opts && opts.length == 2) {
|
||||||
cur_options.xaxes[0].min = opts[0].xmin;
|
cur_options.xaxes[0].min = opts[0].xmin;
|
||||||
cur_options.xaxes[0].max = opts[0].xmax;
|
cur_options.xaxes[0].max = opts[0].xmax;
|
||||||
cur_options.yaxes[0].min = opts[0].ymin;
|
cur_options.yaxes[0].min = opts[0].ymin;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user