Skip to content

Commit 9ad44a6

Browse files
changed error message to no data
1 parent c60233a commit 9ad44a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/app/plugins/panel/barchart/utils.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ describe('BarChart utils', () => {
174174
});
175175
const result = prepareBarChartDisplayValues([df], createTheme(), { stacking: StackingMode.None } as Options);
176176
const warning = assertIsDefined('warn' in result ? result : null);
177-
expect(warning.warn).toEqual('Bar charts requires a string or time field');
177+
expect(warning.warn).toEqual('No Data');
178178
expect(warning).not.toHaveProperty('viz');
179179
});
180180

public/app/plugins/panel/barchart/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ export function prepareBarChartDisplayValues(
457457

458458
if (!firstField) {
459459
return {
460-
warn: 'Bar charts requires a string or time field',
460+
warn: 'No Data',
461461
};
462462
}
463463

0 commit comments

Comments
 (0)