Coder Social home page Coder Social logo

Comments (4)

xiaolin3303 avatar xiaolin3303 commented on May 13, 2024

参看 #18

from wx-charts.

mengzhimin2011 avatar mengzhimin2011 commented on May 13, 2024

配置的时候已经配置了
xAxis: {
disableGrid: true
}
但是没用,我的数据在上千个。有办法不显示X轴标注吗?或者X轴是一个区间

from wx-charts.

xiaolin3303 avatar xiaolin3303 commented on May 13, 2024

@mengzhimin2011 确保你更新了最新版本的代码,X轴现在不会出现文案重叠的情况,上千的数据X轴也不会有问题
如果要加上隐藏X轴的配置会觉得很怪,如果没有X轴应该不叫图表工具,叫折线图了

当然针对你的情况:
如果你的数据有上千个,折线看上去应该会很怪,挤到一起了,最好你要做一下分类,不要全部一下交给图表工具来处理,根据不同的条件动态的调用(可以针对同一个canvas多次调用)

new wxCharts()

from wx-charts.

xiaolin3303 avatar xiaolin3303 commented on May 13, 2024

如果你有强烈的需求不显示X轴,可以这样配置

categories: ['', '', '', ...],
xAxis: {
    disableGrid: true
}

from wx-charts.

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.