Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 538f96a

Browse files
changed error message to no data (#182)
1 parent c60233a commit 538f96a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /