Comments (3)
@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.
非常感谢您的回复,我发现分时图里面的x轴的开始时间是9:30,但是指标器可以指示到8:00,还有怎么自定义x轴时间的显示,比如在增加几个时间点,10:30,14:00等等。
from clchart.
@kf53916 这个暂时没有支持,我找个时间支持一下。
可以通过配置
Line 320 in 7333978
然后在绘制x轴位置添加实现
clchart/src/chart/cl.draw.axisX.js
Line 86 in 7333978
from clchart.
Related Issues (20)
- 现在能支持 拖拽移动查看历史行情吗?我在demo上只看到了 + - HOT 1
- TypeError: ClChart.createSingleChart is not a function HOT 2
- 图表动态更新 HOT 1
- 图表误差 HOT 1
- 期待技术交流 HOT 3
- 手势操作与深度图 HOT 1
- can i set the canvas background transparent? HOT 1
- How to add tools to the chart? HOT 1
- 长按触发十字线-十字线位置对应数据-emit到canvas图表外面
- k线图
- 支持在快应用中使用么?
- 文档中react-native demo无法运行,另外RN支持安卓吗?
- npm安装后无法导入
- Demo sample do not works well
- 数据问题
- indent HOT 1
- Horizontal line
- run build 失败 node 版本12.10
- 帮助文档不全 HOT 2
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 clchart.