GithubHelp home page GithubHelp logo

Comments (5)

enjoyhot avatar enjoyhot commented on May 22, 2024 1

你好,请问当前最新版本的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.

chenjiandongx avatar chenjiandongx commented on May 22, 2024

你把数据进行对数处理再画上去试试看

from pyecharts.

laputa-ghost avatar laputa-ghost commented on May 22, 2024

找到一个解决方案,通过更改生成的HTML的yAxis(另yAxis='log')或者在option.py中xy_axis函数中最后增加_yAxis.update(type="log")。
不知道能否有更简单的方法,建议直接增加选项控制,类似is_ylog=True这样的。

from pyecharts.

chenjiandongx avatar chenjiandongx commented on May 22, 2024

嗯 你能否贴上使用效果图

from pyecharts.

chenjiandongx avatar chenjiandongx commented on May 22, 2024

@laputa-ghost
版本已更新为 0.1.9.3,新增了 xaxis_type 和 yaxis_type 参数,详情参考 changelog.md

from pyecharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.