TeamDesk Knowledge Base & Support

   Home      FAQ      Forum      Idea Exchange      Ask a Question      My Stuff      Help   
  
Color graphs
I have a graph of aging data.
On y axis number of items, x axis number of days aged of each.
I want to color the graph If <10 days aging = green, 10-20 days amber, >20 days red.
This on the face of it is not complex but it currently does not appear to be possible.
Any ideas?


ID
2051
Category
User Experience
Author

John Gordon
Date Created
6/7/2024 4:23:35 AM
Date Updated
11/29/2024 7:49:37 AM
Comments
calvin peters 6/7/2024 8:55:50 AM
At a guess I would think the problem you're encountering is with the limits to colorization based on grouping and chart type. Bar charts , for whatever reason , don't support colorization using reference to columns:
The error is: Row colorization formula for this chart type can not use columns

I don't really understand it either but if you switch to a pie chart and use some formula like ToDays(Today()-[your date column] <10, "fav color here", ToDays(Today()-[your date column] <20, "next fav color here", etc

I think you'll get what yo're after...

place your formula in the ADVANCED OPTIONS section of your view setup form...but you likely already got that far to get to this question I imagine...

Jorge Solá 11/29/2024 7:49:37 AM
Hi, John.

TeamDesk graphs are good & simple to set up, but the options are limited.

When I find myself in need of a graph that can't be done in TeamDesk, I use a third-party service. My service of choice is quickchart.io. They have quite an extensive chart gallery, & the service works very well. With quickchart.io, you have total control over colors.

Of course, setting up charts with quickchart.io is much more laborious, but once you have a chart set up the way you like it, it works like a charm.

Basically, this is how you do it:

1) You set up a Formula-URL column with the URL address of quickchart.io & your chart parameters, something like this (of course, in the formula you replace these figures with column values from your database):

https://quickchart.io/chart?c={type:'bar',data:{labels:['Q1','Q2','Q3','Q4'], datasets:[{label:'Users',data:[50,60,70,180]},{label:'Revenue',data:[100,200,300,400]}]}}

2) You set up a Formula-XHTML column with an <img> tag that references the Formula-URL column.

And that's it, you are all set. You can include the Formula-XHTML column in forms, views & documents.

If you want to try it & need help, just reach out to me (jsolaullod@gmail.com).
Feedback
Back to Search Results