Need function to get array of different colors

Discussion in 'PHP' started by mstdmstd, Apr 27, 2018.

  1. #1
    Hello!

    In Laravel 5.6 / PHP 7.1 / vuejs 2.5 applicatio I do reports based on vue-chartjs reports ( http://demo.vue-chartjs.org/ )
    I want to select different number data types(multiselection input) and I need to set different color for any data type.
    I need some kind of function to get array(length in selected data types) of different colors but not white color(or similar)
    as reports would be on white background?

    If there is such a function or idea how to write it?

    Thanks!
     
    mstdmstd, Apr 27, 2018 IP
  2. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265
    #2
    Did not even understand what you are trying to do... Could you please explain in little more detail? Thanks
     
    JEET, Apr 30, 2018 IP