--- a/static/candolint.css Mon Oct 16 11:29:02 2017 +0800
+++ b/static/candolint.css Mon Oct 16 20:37:16 2017 +0800
+ border: 1px solid #000;
--- a/static/candolint.js Mon Oct 16 11:29:02 2017 +0800
+++ b/static/candolint.js Mon Oct 16 20:37:16 2017 +0800
{name: 'errors', color: '#da314b', scale: y1}
+ $.each(config, function(i, series) {
+ $tooltip.find('[data-dot="' + series.name + '"]').css('background', series.color);
var render = function() {
svg.attr('width', $container.width());
svg.attr('height', $container.height());
--- a/templates/check.html Mon Oct 16 11:29:02 2017 +0800
+++ b/templates/check.html Mon Oct 16 20:37:16 2017 +0800
<div class="uk-position-relative uk-margin-top chart-container">
<svg id="check-chart"></svg>
- <div class="uk-panel uk-panel-box uk-panel-box-secondary uk-display-inline-block uk-position-absolute uk-hidden chart-tooltip">
- <dl class="uk-description-list-horizontal list-terse">
- <dd data-point="warnings">0</dd>
- <dd data-point="errors">0</dd>
- <dd data-point="duration">0</dd>
+ <table class="uk-display-inline-block uk-position-absolute uk-position-z-index uk-hidden chart-tooltip">
+ <div class="uk-display-inline-block legend-dot" data-dot="warnings"></div>
+ <td data-point="warnings">0</td>
+ <div class="uk-display-inline-block legend-dot" data-dot="errors"></div>
+ <td data-point="errors">0</td>
+ <div class="uk-display-inline-block legend-dot" data-dot="duration"></div>
+ <td data-point="duration">0</td>
<script type="application/json" id="check-chart-data">{% raw json_encode(chart) %}</script>