Skip to content

Commit

Permalink
Merge pull request #402 from rlindooren/hotfix/issue-392/change_url_f…
Browse files Browse the repository at this point in the history
…or_britecharts

Temporarily change britecharts CDN URL
  • Loading branch information
bojand authored Feb 2, 2023
2 parents 67d3bdc + aedfd3f commit 595dde5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions printer/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ duration (ms),status,error{{ range $i, $v := .Details }}
<title>ghz{{ if .Name }} - {{ .Name }}{{end}}</title>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/papaparse.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/britecharts@2/dist/bundled/britecharts.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/britecharts@3/dist/bundled/britecharts.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/britecharts/dist/css/britecharts.min.css" type="text/css" /></head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/britecharts@3/dist/css/britecharts.min.css" type="text/css" /></head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" />
</head>
Expand Down Expand Up @@ -356,12 +356,6 @@ duration (ms),status,error{{ range $i, $v := .Details }}
tooltipContainer,
dataset;
tooltip.numberFormat('')
tooltip.valueFormatter(function(v) {
var percent = v / count * 100;
return v + ' ' + '(' + Number.parseFloat(percent).toFixed(1) + ' %)';
})
if (containerWidth) {
dataset = data;
barChart
Expand Down
10 changes: 2 additions & 8 deletions www/website/static/sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<title>ghz - Greeter SayHello</title>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/papaparse.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/britecharts@2/dist/bundled/britecharts.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/britecharts@3/dist/bundled/britecharts.min.js"></script>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/britecharts/dist/css/britecharts.min.css" type="text/css" /></head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/britecharts@3/dist/css/britecharts.min.css" type="text/css" /></head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css" />

</head>
Expand Down Expand Up @@ -398,12 +398,6 @@ <h3>Data</h3>
tooltipContainer,
dataset;

tooltip.numberFormat('')
tooltip.valueFormatter(function(v) {
var percent = v / count * 100;
return v + ' ' + '(' + Number.parseFloat(percent).toFixed(1) + ' %)';
})

if (containerWidth) {
dataset = data;
barChart
Expand Down

0 comments on commit 595dde5

Please sign in to comment.