This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tablevis): Set proper width for each column (#189)
* fix(tablevis): set the width for each column n * fix(fix comments): fix comments from pr * fix(revert to charwidth): revert to charwidth
- Loading branch information
Showing
5 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/superset-ui-plugins-demo/storybook/stories/plugin-chart-table/bigData.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* eslint-disable no-unused-vars */ | ||
/* eslint-disable no-magic-numbers */ | ||
/* eslint-disable sort-keys */ | ||
const LONG_STRING = `The quick brown fox jumps over the lazy dog`; | ||
const SHORT_STRING = 'Superset'; | ||
|
||
const ROW_COUNT = 30; | ||
const COLUMN_COUNT = 20; | ||
|
||
export const keys = Array(COLUMN_COUNT) | ||
.fill(0) | ||
.map((_, i) => `Column Name ${i}`); | ||
|
||
const item = {}; | ||
keys.forEach(key => { | ||
item[key] = Math.random() < 0.5 ? LONG_STRING : SHORT_STRING; | ||
}); | ||
|
||
export default Array(ROW_COUNT) | ||
.fill(0) | ||
.map(_ => ({ ...item })); |