Jump to content

AlexTesler

New Members
  • Posts

    1
  • Joined

  • Last visited

AlexTesler's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi people I am new to php and I need your help. I am usig libchart and want to make the bars colored based on value: Original code: $this->setBarColor(array( new Color(42, 71, 1), )); I want to make something like this: $this->setBarColor(array( if ( ( condition1 )) new Color(42, 171, 1), if ( ( condition2 )) new Color(42, 71, 1), if ( ( condition3 )) new Color(42, 71, 211), )); I do not know php syntax yet, so how can I do this? Thank you, Alex
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.