We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31dea05 + 19b7538 commit 2a33380Copy full SHA for 2a33380
src/chart/ChartUtils.ts
@@ -95,7 +95,7 @@ export function valueIsObject(value) {
95
}
96
97
export function toNumber(ref) {
98
- if (ref === undefined) {
+ if (ref === undefined || typeof ref === 'number') {
99
return ref;
100
101
let { low, high } = ref;
@@ -172,7 +172,7 @@ export const downloadCSV = (rows) => {
172
});
173
csv += '\n';
174
175
- const file = new Blob([`\ufeff${ csv}`], { type: 'text/plain;charset=utf8' });
+ const file = new Blob([`\ufeff${csv}`], { type: 'text/plain;charset=utf8' });
176
element.href = URL.createObjectURL(file);
177
element.download = 'table.csv';
178
document.body.appendChild(element); // Required for this to work in FireFox
0 commit comments