Can't get my head around it...

Anonymous
2010-12-02
2013-05-28
  • Anonymous - 2010-12-02

    Hi could somebody please help to put this data into line charts?
    I must be really stupid here but I can't figure out how to do it.
    output => Array
    (
         => Array
            (
                 => Blue car
                 => Array
                    (
                         => Array
                            (
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                            )

                         => Array
                            (
                                 => 3
                            )

                    )

                 => Array
                    (
                         => 1 01/12/10
                         => 1 02/12/10
                    )

            )

         => Array
            (
                 => Red car
                 => Array
                    (
                         => Array
                            (
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                            )

                         => Array
                            (
                                 => 3
                            )

                    )

                 => Array
                    (
                         => 1 01/12/10
                         => 1 02/12/10
                    )

            )

         => Array
            (
                 => Green car
                 => Array
                    (
                         => Array
                            (
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                                 => 3
                            )

                         => Array
                            (
                                 => 3
                            )

                    )

                 => Array
                    (
                         => 1 01/12/10
                         => 1 02/12/10
                    )

            )

    )

    Where:
    $data would be
    $g->set_x_labels would be
    $g->line would be 

    Please let me know if it's not clear.
    My head is in loop &|
    Thanks in advance!
    -D

     
  • Anonymous - 2010-12-02

    here is a better array:
    output => Array
    (
         => Array
            (
                 => Green Car
                 => Array
                    (
                         => Array
                            (
                                 => 3
                                 => 7
                                 => 1
                            )

                         => Array
                            (
                                 => 7
                                 => 7
                                 => 6
                                 => 4
                            )

                    )

                 => Array
                    (
                         => 1 01/12/10
                         => 1 02/12/10
                    )

            )

        => Array
            (
                 => Blue Car
                 => Array
                    (
                         => Array
                            (
                                 => 3
                                 => 7
                                 => 1
                            )

                         => Array
                            (
                                 => 7
                                 => 7
                                 => 6
                                 => 4
                            )

                    )

                 => Array
                    (
                         => 1 01/12/10
                         => 1 02/12/10
                    )

            )

         => Array
            (
                 => Green car
                 => Array
                    (
                         => Array
                            (
                                 => 3
                                 => 7
                                 => 1
                            )

                         => Array
                            (
                                 => 7
                                 => 7
                                 => 6
                                 => 4
                            )

                    )

                 => Array
                    (
                         => 1 01/12/10
                         => 1 02/12/10
                    )

            )

    )

     

Log in to post a comment.