Comments (5)
你好,请问当前最新版本的Line应该怎么设置xaxis_type呢?通过以下方法添加,发现出现是空白?
谢谢。
`
attr = [10, 20, 90, 91,92,93]
v1 = [5, 20, 36, 10, 10, 100]
v2 = [55, 60, 16, 20, 15, 80]
line = Line("10 seconds batch duration")
line.add("商家A", attr, v1, mark_point=["average"],is_smooth=True, xaxis_type='value')
line
`
通过这种方式解决了:
line.options['series'][0]['data'] = map(lambda i:[attr[i],v1[i]], range(len(attr)))
from pyecharts.
你把数据进行对数处理再画上去试试看
from pyecharts.
找到一个解决方案,通过更改生成的HTML的yAxis(另yAxis='log')或者在option.py中xy_axis函数中最后增加_yAxis.update(type="log")。
不知道能否有更简单的方法,建议直接增加选项控制,类似is_ylog=True这样的。
from pyecharts.
嗯 你能否贴上使用效果图
from pyecharts.
@laputa-ghost
版本已更新为 0.1.9.3,新增了 xaxis_type 和 yaxis_type 参数,详情参考 changelog.md
from pyecharts.
Related Issues (20)
- ThemeRiver图中的系列不能指定颜色 HOT 2
- 在同个Grid()下 Map()影响Line()的着色 HOT 3
- page拖拽布局重新渲染出来的文件不能和鼠标交互 HOT 1
- 在Geo下使用Timeline,自定义的add_js_funcs未加载到html中 HOT 2
- Add package to conda-forge channel HOT 7
- 对于x轴有重复点的情况为什么会这么显示 HOT 1
- 在Map()下绘制图示之后, 根据某种品牌自定义颜色后, 使用图例展示, 没有效果, 请问这个如何进行展示, 查看文旦, 好像现在的API和文档的不一致, 是不是没有更新文档 HOT 2
- 如何根据自定义的颜色显示图例 HOT 3
- 使用Gird绘制Candlestick组合图时,无法添加多张子图,只要grid_index>2就会显示不正常 HOT 2
- 在Kline Grid当中,多于4张图则无法联动缩放 HOT 2
- Texture option for globe map
- TooltipOpts map地图中要同时展示gmv, 有人对接供应商数,无人对接供应商数,提示框需要有人对接供应商数,无人对接供应商数 HOT 1
- `pyecharts`中的`VisualMapOpt`相比`echarts`缺失了`range`参数,且`out_of_rage`参数和`echarts`不同 HOT 1
- Sankey图的EdgeLabel无法显示具体数值 HOT 4
- 散点图初始的坐标轴和数据点不对应,刷新后对应 HOT 2
- 在jupyter notebook中无法渲染图表 HOT 3
- 执行函数:Tab.render()时报错 HOT 1
- 使用前后端分离功能时geo和map的地图总是无法正常显示 HOT 1
- Feature Request: Offline Support for Pyecharts HOT 1
- Feautre request: Time support to stacked bar plots? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyecharts.