-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(layout): valid specified component size (#5264)
- Loading branch information
Showing
6 changed files
with
64 additions
and
18 deletions.
There are no files selected for viewing
Binary file modified
BIN
+1.16 KB
(100%)
__tests__/integration/snapshots/static/bodyPointScatterPlot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+113 KB
__tests__/integration/snapshots/static/unemploymentAreaStackedLegendSize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
28 changes: 28 additions & 0 deletions
28
__tests__/plots/static/unemployment-area-stacked-legend-size.ts
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,28 @@ | ||
import { G2Spec } from '../../../src'; | ||
|
||
export function unemploymentAreaStackedLegendSize(): G2Spec { | ||
return { | ||
type: 'area', | ||
padding: 'auto', | ||
width: 800, | ||
data: { | ||
type: 'fetch', | ||
value: 'data/unemployment-by-industry.csv', | ||
}, | ||
transform: [{ type: 'stackY' }], | ||
encode: { | ||
x: 'date', | ||
y: 'unemployed', | ||
color: 'industry', | ||
}, | ||
legend: { color: { size: 50 } }, | ||
viewStyle: { | ||
viewFill: '#4e79a7', | ||
plotFill: '#f28e2c', | ||
mainFill: '#e15759', | ||
contentFill: '#76b7b2', | ||
}, | ||
}; | ||
} | ||
|
||
unemploymentAreaStackedLegendSize.maxError = 180; |
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