Git Product home page Git Product logo

Comments (3)

Micjoyce avatar Micjoyce commented on September 26, 2024

@kf53916 这个可以通过配置的scale参数来修正

const syscfg = {
      scale: window.devicePixelRatio,  // 传入放大倍数
      axisPlatform: 'phone', // 'phone' | 'web'
      mainCanvas: {
        canvas: mainCanvas,
        context: mainCtx
      },
      cursorCanvas: {
        canvas: cursorCanvas,
        context: cursorCtx
      }
    }

加入在屏幕上设置的 canvas 的尺寸是 300 * 300 而你的屏幕是2dpr(两倍屏),此时你需要其实是要绘制一张 600 * 600 的图,然后在缩放1倍,这样子你看起来才是清晰的。

clchart 只需要通过设定 scale 这个参数,内部会帮你处理好的

from clchart.

kf53916 avatar kf53916 commented on September 26, 2024

非常感谢您的回复,我发现分时图里面的x轴的开始时间是9:30,但是指标器可以指示到8:00,还有怎么自定义x轴时间的显示,比如在增加几个时间点,10:30,14:00等等。

from clchart.

Micjoyce avatar Micjoyce commented on September 26, 2024

@kf53916 这个暂时没有支持,我找个时间支持一下。

可以通过配置

export const CHART_NOWVOL = {

然后在绘制x轴位置添加实现

_drawTxt(this.context, xx, yy, value,

from clchart.

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.