Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃[闂] How to change line color or create gaps if data points are not the same day in Line Charts? #2494

Open
dejongyeong opened this issue Apr 10, 2024 · 0 comments

Comments

@dejongyeong
Copy link

馃 闂鎻忚堪 [璇︾粏鍦版弿杩伴棶棰橈紝璁╁ぇ瀹堕兘鑳界悊瑙

In Line Chart, how to create gaps (do not join the point) or change line color to 0 if the current point and the previous point does not have the same day?

The dt is of type string when retrieving from the database

馃捇 绀轰緥浠g爜 [濡傛灉鏈夊繀瑕侊紝灞曠ず浠g爜锛岀嚎涓婄ず渚嬶紝鎴栦粨搴揮

Example data:

const data = [
    {
        "dt": "13-03-2024 11:26:00",
        "Temperature": 5,
        "Pressure": 5.4,
        "Voltage": 3.1
    },
    {
        "dt": "13-03-2024 11:28:00",
        "Temperature": 5,
        "Pressure": 5.4,
        "Voltage": 3.1
    },
    {
        "dt": "13-03-2024 11:30:00",
        "Temperature": 6,
        "Pressure": 5.41,
        "Voltage": 3.1
    },
    {
        "dt": "14-03-2024 11:32:00",
        "Temperature": 6,
        "Pressure": 5.45,
        "Voltage": 3.1
    },
    {
        "dt": "14-03-2024 11:34:00",
        "Temperature": 6,
        "Pressure": 5.45,
        "Voltage": 3.1
    },
];

馃殤 鍏朵粬淇℃伅 [濡傛埅鍥剧瓑鍏朵粬淇℃伅鍙互璐村湪杩欓噷]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant