ivylabs / IvyDC

IvyDC - Ivy Dashboard Components
http://www.ivy-is.co.uk
Mozilla Public License 2.0
5 stars 10 forks source link

Malfunction with summaryComponent #41

Closed Marco-Costa closed 9 years ago

Marco-Costa commented 9 years ago

I'm building a dashboard where I am using several 'summaryComponent'.

The result I'm getting is all the same, no matter if value 1 is higher or lower than value 2. The arrow doesn't change.

here a picture illustrating the situation: http://oi60.tinypic.com/mm7x3a.jpg

what to do ?

latinojoel commented 9 years ago

Hi @Marco-Costa,

I think you don't have the latest version of IvyDC. If you have, make sure the numbers you're getting are numeric and not string types (as you're doing a SQL query maybe in the database the numbers are varchar types). I did a test similar based on your image and it's working for me. Check the images.

firefox_screenshot_2015-02-07t11-58-45 629z firefox_screenshot_2015-02-07t11-59-11 353z

Cheers.

Marco-Costa commented 9 years ago

Thank you latinojoel for your reply,

I do have the latest version of IvyDC, and I do have the values stored on my DB as numeric. By looking at the second image from your reply I found the error.

On my datasource I was only getting two values, when I need three.

Problem Solved, Thank you