fixed the Chart.js tooltipLabels hack to work correctly with a single data set.

This commit is contained in:
hyung-hwan 2015-02-12 15:56:14 +00:00
parent f0ae5dcd1d
commit ae2036b4f2
2 changed files with 8 additions and 1 deletions

View File

@ -170,6 +170,10 @@ $this->load->view (
"code/diff/{$project->id}/{$xpar}{$revreq}", "code/diff/{$project->id}/{$xpar}{$revreq}",
$this->lang->line('Difference')); $this->lang->line('Difference'));
print ' | '; print ' | ';
print anchor (
"code/fulldiff/{$project->id}/{$xpar}{$revreq}",
$this->lang->line('Full Difference'));
print ' | ';
if ($revision > 0) if ($revision > 0)

View File

@ -164,7 +164,10 @@
tooltipXOffset: 10, tooltipXOffset: 10,
// String - Template string for single tooltips // String - Template string for single tooltips
tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>", // HYUNG-HWAN
//tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>",
tooltipTemplate: "<%if (tooltipLabel) {%><%=tooltipLabel%>: <%} else if (label){%><%=label%>: <%}%><%= value %>",
// END HYUNG-HWAN
// String - Template string for single tooltips // String - Template string for single tooltips
multiTooltipTemplate: "<%= value %>", multiTooltipTemplate: "<%= value %>",