how to change the colour in report for a specific position ?

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

how to change the colour in report for a specific position ?

Postby Gustavix320 » Wed Jul 01, 2020 4:29 pm

In this Example i want 3bet Overall (not all position) be red if its smaller than 10.
So i use the normal formula and add < 10 marking colour red on the tracker ((cnt_p_3bet / cnt_p_3bet_opp) * 100) < 10

colour 1.png


But the stats were like this
3bet PF1.png
3bet PF1.png (10.22 KiB) Viewed 775 times


1 - How can i make to work only on the last one ? which is the average of all
2 - And for a specific position ? like, if i want 3bet be red on position CO if this is < 8
Gustavix320
 
Posts: 14
Joined: Tue May 26, 2020 9:33 pm

Re: how to change the colour in report for a specific positi

Postby Flag_Hippo » Sat Jul 04, 2020 5:51 am

1. You can do that with a custom statistic and this as the summary expression:

Code: Select all
if( this < 10, rgb(255,0,0), '') + format_number(this, 2, false, false )

2. That's not possible as far as I know.
Flag_Hippo
Moderator
 
Posts: 14505
Joined: Tue Jan 31, 2012 7:50 am

Re: how to change the colour in report for a specific positi

Postby Gustavix320 » Mon Jul 06, 2020 6:37 pm

so how would my example look?
instead of "this" I replace for the definition of 3bet stat ? ? "(cnt_p_3bet / cnt_p_3bet_opp) * 100)"
Last edited by Gustavix320 on Mon Jul 06, 2020 6:45 pm, edited 1 time in total.
Gustavix320
 
Posts: 14
Joined: Tue May 26, 2020 9:33 pm

Re: how to change the colour in report for a specific positi

Postby Gustavix320 » Mon Jul 06, 2020 6:41 pm

Because i copy that expression and put in there but is not valid. Say "color condition expression is not valid"
Gustavix320
 
Posts: 14
Joined: Tue May 26, 2020 9:33 pm

Re: how to change the colour in report for a specific positi

Postby Gustavix320 » Tue Jul 07, 2020 1:16 am

ok forget the last posts, i got it here now, It works.
Thanks man.

So u think its not possible create for specify positions ? like, i wanted create conditions colour for raise first in EP < 15 and > 19, MP < 20 and > 25, CO < 30 and > 35, BTN < 47 > 55

And a last one: Using that example expression 3bet colour "if( this < 10..." if i want add numbers between, how would i do it ?
example: i want < 10 and > 12, can i use "AND" on the expression ? it will work ?

To finish, where can i find codes of rgb ?
Gustavix320
 
Posts: 14
Joined: Tue May 26, 2020 9:33 pm

Re: how to change the colour in report for a specific positi

Postby Flag_Hippo » Tue Jul 07, 2020 12:37 pm

Gustavix320 wrote:So u think its not possible create for specify positions ? like, i wanted create conditions colour for raise first in EP < 15 and > 19, MP < 20 and > 25, CO < 30 and > 35, BTN < 47 > 55

Not in a single statistic. You can set multiple color conditions but only the first condition that matches (highest in the color condition list) will display.
Gustavix320 wrote:And a last one: Using that example expression 3bet colour "if( this < 10..." if i want add numbers between, how would i do it ?
example: i want < 10 and > 12, can i use "AND" on the expression ? it will work ?

If you want between 10 and 12 for the summary line then use:

Code: Select all
if(this > 10 and this < 12, rgb(255,0,0), '') + format_number(this, 2, false, false )

Gustavix320 wrote:To finish, where can i find codes of rgb ?

https://www.rapidtables.com/web/color/RGB_Color.html
Flag_Hippo
Moderator
 
Posts: 14505
Joined: Tue Jan 31, 2012 7:50 am

Re: how to change the colour in report for a specific positi

Postby Gustavix320 » Tue Jul 07, 2020 9:16 pm

Nice, Thanks again man.

Flag_Hippo wrote:Not in a single statistic. You can set multiple color conditions but only the first condition that matches (highest in the color condition list) will display.

does this apply so if i want to create one more color condition line?
Like, I want it to be red if it is out of ideal, and green if it is ok.

Then I thought about using it like this:
Code: Select all
if(this * 100 < 9 and this * 100 > 12, rgb(255,0,0), '') + format_number((cnt_p_3bet / cnt_p_3bet_opp) * 100, 2, false, false )
if(this * 100 >= 9 and this * 100 <= 12, rgb(0,204,0), '') + format_number((cnt_p_3bet / cnt_p_3bet_opp) * 100, 2, false, false )

Would it work ?
Gustavix320
 
Posts: 14
Joined: Tue May 26, 2020 9:33 pm

Re: how to change the colour in report for a specific positi

Postby Flag_Hippo » Wed Jul 08, 2020 4:49 am

You can replace the ELSE with a second color condition.

Gustavix320 wrote:Then I thought about using it like this:
Code: Select all
if(this * 100 < 9 and this * 100 > 12,

Also a single value cannot be both less than 9 and greater than 12 so you will need to format like this:

Code: Select all
if(this >= 9 and this <= 12, rgb(0,204,0), rgb(255,0,0)) + format_number(this, 2, false, false)
Flag_Hippo
Moderator
 
Posts: 14505
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 30 guests

cron