Skip to content

Commit

Permalink
Use em-dash instead of double-hyphen in legend
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed Nov 18, 2021
1 parent 468b3b3 commit a2f2069
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dist/uPlot.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2705,7 +2705,7 @@ function uPlot(opts, data, then) {
legendCols = multiValLegend ? getMultiVals(self, 1, 0) : {_: 0};

for (let k in legendCols)
NULL_LEGEND_VALUES[k] = "--";
NULL_LEGEND_VALUES[k] = "";
}

if (showLegend) {
Expand Down Expand Up @@ -2792,7 +2792,7 @@ function uPlot(opts, data, then) {

for (var key in legendCols) {
let v = placeTag("td", LEGEND_VALUE, row);
v.textContent = "--";
v.textContent = "";
cells.push(v);
}

Expand Down
4 changes: 2 additions & 2 deletions dist/uPlot.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ function uPlot(opts, data, then) {
legendCols = multiValLegend ? getMultiVals(self, 1, 0) : {_: 0};

for (let k in legendCols)
NULL_LEGEND_VALUES[k] = "--";
NULL_LEGEND_VALUES[k] = "";
}

if (showLegend) {
Expand Down Expand Up @@ -2790,7 +2790,7 @@ function uPlot(opts, data, then) {

for (var key in legendCols) {
let v = placeTag("td", LEGEND_VALUE, row);
v.textContent = "--";
v.textContent = "";
cells.push(v);
}

Expand Down
6 changes: 3 additions & 3 deletions dist/uPlot.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,7 @@ var uPlot = (function () {
legendCols = multiValLegend ? getMultiVals(self, 1, 0) : {_: 0};

for (let k in legendCols)
NULL_LEGEND_VALUES[k] = "--";
NULL_LEGEND_VALUES[k] = "";
}

if (showLegend) {
Expand Down Expand Up @@ -2793,7 +2793,7 @@ var uPlot = (function () {

for (var key in legendCols) {
let v = placeTag("td", LEGEND_VALUE, row);
v.textContent = "--";
v.textContent = "";
cells.push(v);
}

Expand Down Expand Up @@ -5198,4 +5198,4 @@ var uPlot = (function () {

return uPlot;

})();
}());
2 changes: 1 addition & 1 deletion dist/uPlot.iife.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/uPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export default function uPlot(opts, data, then) {
legendCols = multiValLegend ? getMultiVals(self, 1, 0) : {_: 0};

for (let k in legendCols)
NULL_LEGEND_VALUES[k] = "--";
NULL_LEGEND_VALUES[k] = "";
}

if (showLegend) {
Expand Down Expand Up @@ -640,7 +640,7 @@ export default function uPlot(opts, data, then) {

for (var key in legendCols) {
let v = placeTag("td", LEGEND_VALUE, row);
v.textContent = "--";
v.textContent = "";
cells.push(v);
}

Expand Down

0 comments on commit a2f2069

Please sign in to comment.