fixed the Chart.js tooltipLabels hack to work correctly with a single data set.
This commit is contained in:
parent
f0ae5dcd1d
commit
ae2036b4f2
@ -170,6 +170,10 @@ $this->load->view (
|
||||
"code/diff/{$project->id}/{$xpar}{$revreq}",
|
||||
$this->lang->line('Difference'));
|
||||
print ' | ';
|
||||
print anchor (
|
||||
"code/fulldiff/{$project->id}/{$xpar}{$revreq}",
|
||||
$this->lang->line('Full Difference'));
|
||||
print ' | ';
|
||||
|
||||
|
||||
if ($revision > 0)
|
||||
|
5
codepot/src/js/Chart.js
vendored
5
codepot/src/js/Chart.js
vendored
@ -164,7 +164,10 @@
|
||||
tooltipXOffset: 10,
|
||||
|
||||
// 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
|
||||
multiTooltipTemplate: "<%= value %>",
|
||||
|
Loading…
Reference in New Issue
Block a user