forked from pyecharts/pyecharts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: set_series_opts 新增 kwargs,允许传入任意变量 (pyecharts#1090)
* Update: set_series_opts 新增 kwargs,允许传入任意变量 * Update: 统一测试 eq_ 方式 * Docs: update
- Loading branch information
1 parent
f3e070c
commit 3172dff
Showing
29 changed files
with
158 additions
and
86 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from nose.tools import eq_ | ||
|
||
from example.commons import Faker | ||
from pyecharts.charts import EffectScatter | ||
|
||
|
||
def test_effectscatter_base(): | ||
c = EffectScatter().add_xaxis(Faker.choose()).add_yaxis("", Faker.values()) | ||
assert c.theme == "white" | ||
assert c.renderer == "canvas" | ||
c.render("render.html") | ||
eq_(c.theme, "white") | ||
eq_(c.renderer, "canvas") | ||
c.render() |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from nose.tools import eq_ | ||
|
||
from example.commons import Faker | ||
from pyecharts.charts import Funnel | ||
|
||
|
||
def test_funnel_base(): | ||
c = Funnel().add("商品", [list(z) for z in zip(Faker.choose(), Faker.values())]) | ||
assert c.theme == "white" | ||
assert c.renderer == "canvas" | ||
c.render("render.html") | ||
eq_(c.theme, "white") | ||
eq_(c.renderer, "canvas") | ||
c.render() |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from nose.tools import eq_ | ||
|
||
from pyecharts.charts import Gauge | ||
|
||
|
||
def test_gauge_base(): | ||
c = Gauge().add("", [("完成率", 66.6)]) | ||
assert c.theme == "white" | ||
assert c.renderer == "canvas" | ||
c.render("render.html") | ||
eq_(c.theme, "white") | ||
eq_(c.renderer, "canvas") | ||
c.render() |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from nose.tools import eq_ | ||
|
||
from pyecharts.charts import Liquid | ||
|
||
|
||
def test_liquid_base(): | ||
c = Liquid().add("lq", [0.6, 0.7]) | ||
assert c.theme == "white" | ||
assert c.renderer == "canvas" | ||
c.render("render.html") | ||
eq_(c.theme, "white") | ||
eq_(c.renderer, "canvas") | ||
c.render() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import random | ||
|
||
from nose.tools import eq_ | ||
|
||
from pyecharts import options as opts | ||
from pyecharts.charts import Polar | ||
|
||
|
||
def test_polar_scatter(): | ||
data = [(i, random.randint(1, 100)) for i in range(101)] | ||
c = Polar().add("", data, type_="scatter", label_opts=opts.LabelOpts(is_show=False)) | ||
assert c.theme == "white" | ||
assert c.renderer == "canvas" | ||
c.render("render.html") | ||
eq_(c.theme, "white") | ||
eq_(c.renderer, "canvas") | ||
c.render() |
Oops, something went wrong.