Skip to content

Commit

Permalink
chore(histogram): convert histogram css to emotion style (#572)
Browse files Browse the repository at this point in the history
* convert Histogram to emotion styling

* remove old css
  • Loading branch information
pkdotson authored and zhaoyongjie committed Nov 26, 2021
1 parent 32802e7 commit f6fa5ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/style": "^0.13.26",
"@superset-ui/translation": "^0.13.0",
"@superset-ui/validator": "^0.13.3",
"react": "^15 || ^16"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import { Histogram, BarSeries, XAxis, YAxis } from '@data-ui/histogram';
import { chartTheme } from '@data-ui/theme';
import { LegendOrdinal } from '@vx/legend';
import { scaleOrdinal } from '@vx/scale';
import styled from '@superset-ui/style';
import { CategoricalColorNamespace } from '@superset-ui/color';
import WithLegend from './WithLegend';
import './Histogram.css';

const propTypes = {
className: PropTypes.string,
Expand Down Expand Up @@ -138,4 +138,8 @@ class CustomHistogram extends React.PureComponent {
CustomHistogram.propTypes = propTypes;
CustomHistogram.defaultProps = defaultProps;

export default CustomHistogram;
export default styled(CustomHistogram)`
.superset-legacy-chart-histogram {
overflow: hidden;
}
`;

0 comments on commit f6fa5ad

Please sign in to comment.