@@ -131,7 +131,16 @@ class TagCloud extends Component {
ref={this.saveRootRef}
>
{dv && (
- <Chart width={w} height={h} data={dv} padding={0}>
+ <Chart
+ width={w}
+ height={h}
+ data={dv}
+ padding={0}
+ scale={{
+ x: { nice: false },
+ y: { nice: false },
+ }}
+ >
<Coord reflect="y" />
<Geom type="point" position="x*y" color="text" shape="cloud" />
</Chart>
@@ -1,4 +1,5 @@
import numeral from 'numeral';
+import './g2';
import ChartCard from './ChartCard';
import Bar from './Bar';
import Pie from './Pie';
@@ -2,7 +2,6 @@ import '@babel/polyfill';
import dva from 'dva';
import 'moment/locale/zh-cn';
import FastClick from 'fastclick';
-import './g2';
import './rollbar';
import onError from './error';
// import browserHistory from 'history/createBrowserHistory';