Code Monkey home page Code Monkey logo

Comments (3)

renjiale1214 avatar renjiale1214 commented on August 16, 2024

找到问题了,Y_KlineMainView里的两行代码:maxAssert *= 1.0001; minAssert *= 0.9991;
这个放大缩小了当前屏幕中数据的最大最小值的上下限。在我们后台monk的数据不够真实的时候,就可能出现所有数据都挤在上半部分区域的问题。如果monk数据是几千,那么这个比例显示也不会有什么问题,但是一旦价格数据在100,000这个级别甚至是百万级别,小小的万分之一的差额也会被放大很多。

不知道作者这里为什么要写一个比例的放大和缩小吗

from yykline.

iriswe avatar iriswe commented on August 16, 2024

请问这个K线图你最终怎么选型的。。。

from yykline.

 avatar commented on August 16, 2024

找到问题了,Y_KlineMainView里的两行代码:maxAssert *= 1.0001; minAssert *= 0.9991;
这个放大缩小了当前屏幕中数据的最大最小值的上下限。在我们后台monk的数据不够真实的时候,就可能出现所有数据都挤在上半部分区域的问题。如果monk数据是几千,那么这个比例显示也不会有什么问题,但是一旦价格数据在100,000这个级别甚至是百万级别,小小的万分之一的差额也会被放大很多。

不知道作者这里为什么要写一个比例的放大和缩小吗
l

兄弟你好,我也遇见了同意的问题,请问你当时是如何解决的呢?谢谢

from yykline.

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.