Skip to content

Commit

Permalink
remove dependency on numpy and pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx committed Jul 31, 2017
1 parent c580c77 commit bfe9821
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 119 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Image==1.5.7
pprint==0.1
jinja2==2.8
pandas>=0.18.1
future
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__author__ = 'chenjiandongx'
__author_email__ = '[email protected]'
__license__ = 'MIT'
__requires__ = ['pprint', 'Image', 'jinja2', 'pandas', 'numpy', 'future']
__requires__ = ['pprint', 'Image', 'jinja2', 'future']
__packages__ = ['pyecharts', 'pyecharts/charts']
__keywords__ = ['echarts', 'charts']

Expand Down
234 changes: 117 additions & 117 deletions test/render.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,240 +24,240 @@
<script type="text/javascript ">
var myChart = echarts.init(document.getElementById('main'));
var option = {
"tooltip": {},
"backgroundColor": "#fff",
"toolbox": {
"feature": {
"saveAsImage": {
"show": true
}
},
"left": "right",
"orient": "vertical",
"show": true,
"top": "center"
},
"series": [
{
"rotationStep": 45,
"sizeRange": [
30,
100
],
"type": "wordCloud",
"girdSize": 20,
"shape": "diamond",
"rotationRange": [
0,
0
],
"rotationStep": 45,
"name": "",
"data": [
{
"name": "Sam S Club",
"value": 10000,
"textStyle": {
"normal": {
"color": "rgb(0,130,86)"
"color": "rgb(1,75,97)"
}
},
"name": "Sam S Club",
"value": 10000
}
},
{
"name": "Macys",
"value": 6181,
"textStyle": {
"normal": {
"color": "rgb(2,70,41)"
"color": "rgb(114,152,95)"
}
},
"name": "Macys",
"value": 6181
}
},
{
"name": "Amy Schumer",
"value": 4386,
"textStyle": {
"normal": {
"color": "rgb(72,81,22)"
"color": "rgb(48,96,42)"
}
},
"name": "Amy Schumer",
"value": 4386
}
},
{
"name": "Jurassic World",
"value": 4055,
"textStyle": {
"normal": {
"color": "rgb(47,42,121)"
"color": "rgb(41,70,120)"
}
},
"name": "Jurassic World",
"value": 4055
}
},
{
"name": "Charter Communications",
"value": 2467,
"textStyle": {
"normal": {
"color": "rgb(158,22,57)"
"color": "rgb(79,147,74)"
}
},
"name": "Charter Communications",
"value": 2467
}
},
{
"name": "Chick Fil A",
"value": 2244,
"textStyle": {
"normal": {
"color": "rgb(13,76,111)"
"color": "rgb(7,64,91)"
}
},
"name": "Chick Fil A",
"value": 2244
}
},
{
"name": "Planet Fitness",
"value": 1898,
"textStyle": {
"normal": {
"color": "rgb(15,31,94)"
"color": "rgb(110,3,45)"
}
},
"name": "Planet Fitness",
"value": 1898
}
},
{
"name": "Pitch Perfect",
"value": 1484,
"textStyle": {
"normal": {
"color": "rgb(72,121,91)"
"color": "rgb(40,93,91)"
}
},
"name": "Pitch Perfect",
"value": 1484
}
},
{
"name": "Express",
"value": 1112,
"textStyle": {
"normal": {
"color": "rgb(155,1,154)"
"color": "rgb(95,3,115)"
}
},
"name": "Express",
"value": 1112
}
},
{
"name": "Home",
"value": 965,
"textStyle": {
"normal": {
"color": "rgb(130,123,18)"
"color": "rgb(25,20,69)"
}
},
"name": "Home",
"value": 965
}
},
{
"name": "Johnny Depp",
"value": 847,
"textStyle": {
"normal": {
"color": "rgb(129,36,153)"
"color": "rgb(74,107,94)"
}
},
"name": "Johnny Depp",
"value": 847
}
},
{
"name": "Lena Dunham",
"value": 582,
"textStyle": {
"normal": {
"color": "rgb(99,30,155)"
"color": "rgb(4,2,94)"
}
},
"name": "Lena Dunham",
"value": 582
}
},
{
"name": "Lewis Hamilton",
"value": 555,
"textStyle": {
"normal": {
"color": "rgb(64,125,105)"
"color": "rgb(10,18,23)"
}
},
"name": "Lewis Hamilton",
"value": 555
}
},
{
"name": "KXAN",
"value": 550,
"textStyle": {
"normal": {
"color": "rgb(5,96,98)"
"color": "rgb(151,77,111)"
}
},
"name": "KXAN",
"value": 550
}
},
{
"name": "Mary Ellen Mark",
"value": 462,
"textStyle": {
"normal": {
"color": "rgb(4,54,6)"
"color": "rgb(104,109,55)"
}
},
"name": "Mary Ellen Mark",
"value": 462
}
},
{
"name": "Farrah Abraham",
"value": 366,
"textStyle": {
"normal": {
"color": "rgb(147,53,79)"
"color": "rgb(104,78,58)"
}
},
"name": "Farrah Abraham",
"value": 366
}
},
{
"name": "Rita Ora",
"value": 360,
"textStyle": {
"normal": {
"color": "rgb(137,5,101)"
"color": "rgb(127,10,126)"
}
},
"name": "Rita Ora",
"value": 360
}
},
{
"name": "Serena Williams",
"value": 282,
"textStyle": {
"normal": {
"color": "rgb(151,73,143)"
"color": "rgb(1,30,135)"
}
},
"name": "Serena Williams",
"value": 282
}
},
{
"name": "NCAA baseball tournament",
"value": 273,
"textStyle": {
"normal": {
"color": "rgb(88,37,2)"
"color": "rgb(38,58,45)"
}
},
"name": "NCAA baseball tournament",
"value": 273
}
},
{
"name": "Point Break",
"value": 265,
"textStyle": {
"normal": {
"color": "rgb(157,134,31)"
"color": "rgb(71,148,50)"
}
},
"name": "Point Break",
"value": 265
}
}
],
"girdSize": 20,
"sizeRange": [
30,
100
],
"name": "",
"shape": "diamond",
"type": "wordCloud"
]
}
],
"legend": [
{
"data": []
}
],
"backgroundColor": "#fff",
"tooltip": {},
"title": [
{
"left": "auto",
"subtext": "",
"textStyle": {
"fontSize": 18,
"color": "#000"
"color": "#000",
"fontSize": 18
},
"top": "auto",
"left": "auto",
"text": "",
"subtextStyle": {
"fontSize": 12,
"color": "#aaa"
}
"color": "#aaa",
"fontSize": 12
},
"text": "",
"top": "auto"
}
],
"_index_flag": 1384800,
"toolbox": {
"orient": "vertical",
"feature": {
"saveAsImage": {
"show": true
}
},
"show": true,
"top": "center",
"left": "right"
},
"legend": [
{
"data": []
}
]
"_index_flag": 1928530
};
myChart.setOption(option);
</script>
Expand Down

0 comments on commit bfe9821

Please sign in to comment.