Get the App
SLTechnology News&Howtos  ›  Database  › 

The chart part sets the misplaced display of the X-axis node

Shulou Source: shulou.com Published: 2022-06-01 04:39:06 10月03日 Update

In the actual project development, it may be encountered that the X-axis node value of the chart part is too long, which causes the chart node value to overlap and not to distinguish the node value.

As shown in the picture

Therefore, the metric rapid development platform encapsulates the following methods:

Chart X-axis value dislocation display method: XLableStaggered

Action

Sets whether the label position of the X axis is misplaced (displayed above and below), except for pie chart and funnel chart.

Set valu

Bool type. True means misplaced display, and False means non-misplaced display.

Example

Chart widget. XLablestaggered = true

Effect:

Just add: chart part after the data refresh code. XLableStaggered=true is fine.

Original address: http://bbs.delit.cn/thread-1116-1-1.html

Please indicate the source of the reprint:

Written by: measurement Technology http://www.delit.cn

Tags: Diagrams nodes components methods development code location function provenance original text just need address actual platform development platform effects data methods tags funnel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information Xiaomi Linux Apple