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 Aug 30, 2021
1 parent 4fa2d2f commit 3944f6d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/uPlot.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2554,7 +2554,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 @@ -2641,7 +2641,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 @@ -2552,7 +2552,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 @@ -2639,7 +2639,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.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -2555,7 +2555,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 @@ -2642,7 +2642,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
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 @@ -530,7 +530,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 @@ -617,7 +617,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 3944f6d

Please sign in to comment.