suvuryovo
Posts: 3
Joined: Wed Sep 21, 2022 4:29 am

create chart from multiple array

hello, i have a question

Code: Select all

[0] => Array
        (
            [X] => A0
            [DATA] => Array
                (
                    [AUG-22] => Array
                        (
                            [LOI] => 47.73
                            [IR] => 23
                            [SO3] => 70.95
                            [MIC] => 24.73
                            [CF] => -41.68
                        )

                    [SEP-22] => Array
                        (
                            [LOI] => 125
                            [IR] => 22
                            [SO3] => 956.75
                            [MIC] => 103
                            [CF] => -1003.75
                        )

                )

        )

    [1] => Array
        (
            [X] => A1
            [DATA] => Array
                (
                    [AUG-22] => Array
                        (
                            [LOI] => 25
                            [IR] => 22
                            [SO3] => 45.15
                            [MIC] => 3
                            [CF] => 7.85
                        )

                    [SEP-22] => Array
                        (
                            [LOI] => 52.27
                            [IR] => 33
                            [SO3] => 92.45
                            [MIC] => 19.27
                            [CF] => -77.72
                        )

                )

        )
can i make chart from array like that?

Image

the chart i want is similar like that
thanks
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: create chart from multiple array

Hello there,

Welcome to our forum and thank you for contacting us with your question.

This doesn't look like a JS array, and since Highcharts are a JS library, they don't support other datasets than JS Arrays, Objects, JSON and CSV. If you could transpile your array to any given formats, then you can use it to create a chart.

https://www.highcharts.com/docs/working ... data-intro

Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”