当前位置:网站首页>How to use the chart control of the b/s development tool devextreme - customize the axis position?
How to use the chart control of the b/s development tool devextreme - customize the axis position?
2022-06-29 17:40:00 【Interface development Starling】
DevExtreme Charts Control comes with an enhancement to the axis positioning logic , Developers can be anywhere on the diagram ( Not just its edges ) Locate the axis and specify the intersection coordinates . for example , This feature allows developers to create quadrants or display axes in fixed positions during scrolling and zooming operations .
DevExtreme v22.1 Official download
Custom intersections
Usually , Use ‘position’ Property to specify that the edges of the axis must be rendered ( By default, the left and bottom edges ). under these circumstances , The axes intersect at the angle of the visible range , The visible range depends on the data points and scrolling / Scale coordinates .
In some cases , You may want to fix the axis to a specific value on its orthogonal axis . To achieve this , You can use “argumentAxis” and “valueAxis” Configure the new... Of the object customPosition attribute . In the following example , The shafts are fixed to each other 0 spot .
argumentAxis: {
customPosition: 0 // value at valueAxis
},
valueAxis: {
customPosition: 0 // value at argumentAxis
}
Axis offset
For some usage scenarios , You may want to display the axis in a fixed position independent of the current zoom level and scrolling position , You can use the new offset Option to specify the axis coordinates relative to its original intersection ( In pixels ). In the following example , The axes always intersect at the center of the chart's visible range :
argumentAxis: {
offset: -200 // a half of visible range height
},
valueAxis: {
offset: 390 // a half of visible range width
}
Multi axis support
If your chart contains multiple value axes , have access to customPositionAxis Option to set the name of the relevant numerical axis , You can use it as follows :
argumentAxis: {
customPosition: -10,
customPositionAxis: "leftAxis"
},
valueAxis: [{
position: "right"
},{
position: "left",
name: "leftAxis"
}]
DevExtreme With high performance HTML5 / JavaScript A collection of widgets , So you can take advantage of modern Web Development stack ( Include React,Angular,ASP.NET Core,jQuery,Knockout etc. ) Build interactive Web Applications . from Angular and Reac, To ASP.NET Core or Vue,DevExtreme Includes comprehensive high performance and responsive UI A collection of widgets , But in the tradition Web And the next generation of mobile applications . The suite comes with a fully functional data grid 、 Interactive chart widget 、 Data editor, etc .
DevExpress Technology exchange group 6:600715373 Welcome to group discussion
边栏推荐
- [try to hack] cookies and sessions
- 基于STM32F103ZET6库函数定时器中断实验
- 基于gis三维可视化的智慧城市行业运用
- Browser large screen capture
- mysql. What is the concept of sock
- MySQL highly available cluster – MHA
- linux中mysql 1045错误如何解决
- What value can SRM systems bring to the enterprise?
- About harbor private warehouse forgetting the login password
- Epoll analysis
猜你喜欢
随机推荐
What is the MySQL query view command
Industry application of smart city based on GIS 3D visualization
关于Go中两个模块互相调用的场景解决方案
DevCloud加持下的青软,让教育“智”上云端
Scenario solution for two modules calling each other in go
与爱同行,育润走进贫困家庭,助推公益事业
Error:Connection refused: connect
regular expression
Error:Connection refused: connect
Redis 原理 - Sorted Set (ZSet)
传承中华美德,关注中老年大健康,育润奶粉敬老情浓
mysql查询视图命令是哪个
Set double click to run the jar file
底层内功修养
What are the usage scenarios for locks in MySQL
Use SSH to pull codes
力扣今日题-535. TinyURL 的加密与解密
R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、使用exp函数和coef函数获取模型所有变量的事件密度比(Incidence Density Ratio,IDR)并解读
【Try to Hack】Cookie和Session
SRM系统可以为企业带来什么价值?





![填充每个节点的下一个右侧节点指针[利用好每个点->尽可能降低时空复杂度]](/img/33/bda0a898bfe3503197026d1f62e851.png)



