pyecharts/test/test_scatter3D.py
陈键冬 8f16369400 Charts docs update and pink everything (#536)
* Update: docs update

* Update: 统一注释文档风格

* Update: pink echarts folder

* Update: pink charts folder

* Update: pink custom folder

* Update: pink pyecharts and dataset folder

* Update: pink test folder

* Update: pink utils folder

* Update: micro docs update for theme

* Fix: fixed broken test
2018-05-04 22:37:27 +08:00

28 lines
695 B
Python

# coding=utf-8
from __future__ import unicode_literals
from pyecharts import Scatter3D
from test.constants import RANGE_COLOR
from nose.tools import eq_
def test_scatter3d():
import random
data = [
[
random.randint(0, 100),
random.randint(0, 100),
random.randint(0, 100),
]
for _ in range(80)
]
scatter3d = Scatter3D("3D 散点图示例", width=1200, height=600)
scatter3d.add("", data, is_visualmap=True, visual_range_color=RANGE_COLOR)
scatter3d.render()
def test_scatter3d_must_use_canvas():
scatter3d = Scatter3D("3D 散点图示例", width=1200, height=600)
eq_(scatter3d.renderer, "canvas")