Login Page - Create Account

Support Board


Date/Time: Thu, 02 May 2024 12:25:31 +0000



Post From: Seems that setting of s_NumericInformationGraphDrawTypeConfig.HideLabels is ignored

[2019-11-09 17:46:01]
User972768 - Posts: 166
Hello SC Support,

I'm coding my Custom study and came across strange behaviour. It seems that any value assigned to s_NumericInformationGraphDrawTypeConfig.HideLabels is ignored and always stays as TRUE. Could you please check it?

Just for reference, I'm on v2007 of Sierra and here is the snippet of my code:

s_NumericInformationGraphDrawTypeConfig table_draw_config;

table_draw_config.HideLabels = HideLabels.GetBoolean();

sc.SetNumericInformationGraphDrawTypeConfig(table_draw_config);

And one more question related to the Numeric Information Table Draw Type. It is not clear from provided example how to work with Range Colors and related Threshold Percentages. Do I just initialize s_NumericInformationGraphDrawTypeConfig structure once when sc.Index == 0 and the rest is done automatically? Or should I provide some coloring-related code to assign background color to current cell in the section like:

for (int i = sc.UpdateStartIndex; i < sc.ArraySize; i++) {}
The reason for this question is that I can't find a way to color my data according to percentages that were set in the structure when sc.Index == 0. I look at the "Numbers Bars Calculated Values" study, and it seems to be working fine and on top of that it allows to reset coloring with each session by parameter In:30, which is not a part of provided documentation for the s_NumericInformationGraphDrawTypeConfig structure.

Thanks and best regards
Date Time Of Last Edit: 2019-11-09 19:55:18