[Script] Cómo agregar en gradiente de colorHola,
Estoy atascado aquí, quiero formatear mi columna con degradado de color. Sin embargo, con la secuencia de comandos a continuación, todavía no hay gradiente de color aplicado en mi columna "N". Gracias
R1 = (dt << Tabular (
Mostrar panel de control (0),
Mostrar información sobre herramientas (1),
Añadir tabla (
Tabla de columnas (estadísticas (N)),
Tabla de columnas (agrupación de columnas (: nombre ("test @ 7721")), estadísticas (fila%, N)),
Tabla de filas (agrupando columnas (: radio))
)
)) << Make Into Data Table;
R1 << Columna (
"NORTE",
Establecer propiedad ("Degradado de color", {"Azul a verde a rojo", Rango ({0, 547, 187.945945945946})}),
Celular de color por valor
);
Re: [Script] Cómo agregar en gradiente de colorPor favor, inicie una nueva discusión cuando cambie el tema. ¡Gracias!
Re: [Script] Cómo agregar en gradiente de colorAquí hay una forma:
NamesDefaultToHere(1);
dt = NewTable("Test", << addMultipleColumns("N", 20, Numeric));
// Add some data
Wait(3);
cols = dt << getColumnNames("String");
for(c=1, c<=NItems(cols), c++,
Column(dt, cols[c]) << Formula(RandomNormal());
);
dt << addRows(50);
// Add the colour gradient
Wait(3);
for(c=1, c<=NItems(cols), c++,
Column(dt, cols[c]) << Set Property( "Color Gradient", {"Blue to Green to Red", Range( {0, 547, 188} )} ) << Color Cell by Value;
);Re: [Script] Cómo agregar en gradiente de colorHola, otra pregunta:
Actualmente tengo 20 "N", hay una manera de modificar el script para que no tenga que cambiar 20 veces la "N"
R1<SPAN class="token punctuation">:</SPAN>N <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Set Property<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"Color Gradient"</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token string">"Blue to Green to Red"</SPAN><SPAN class="token punctuation">,</SPAN> Range<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token number">0</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">547</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">187.945945945946</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN>
<SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Color Cell by Value<SPAN class="token punctuation">;</SPAN>
R1<SPAN class="token punctuation">:</SPAN>N1 <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Set Property<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"Color Gradient"</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token string">"Blue to Green to Red"</SPAN><SPAN class="token punctuation">,</SPAN> Range<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token number">0</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">547</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">187.945945945946</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN>
<SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Color Cell by Value<SPAN class="token punctuation">;</SPAN>
R1<SPAN class="token punctuation">:</SPAN>N2 <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Set Property<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"Color Gradient"</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token string">"Blue to Green to Red"</SPAN><SPAN class="token punctuation">,</SPAN> Range<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token number">0</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">547</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">187.945945945946</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN>
<SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Color Cell by Value<SPAN class="token punctuation">;<BR /></SPAN>R1<SPAN class="token punctuation">:</SPAN>N3 <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Set Property<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"Color Gradient"</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token string">"Blue to Green to Red"</SPAN><SPAN class="token punctuation">,</SPAN> Range<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token number">0</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">547</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token number">187.945945945946</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN>
<SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Color Cell by Value<SPAN class="token punctuation">;</SPAN><SPAN class="token punctuation"> </SPAN>
Re: [Script] Cómo agregar en gradiente de colorHola txnelson
Nunca pensé en eso. Muchas gracias por la información. Has sido de gran ayudaRe: [Script] Cómo agregar en gradiente de colorLa "Celda de color por valor" es un mensaje separado y, por lo tanto, no debe manejarse como parte de la propiedad Gradiente de color.
R1 = (dt << Tabulate(
Show Control Panel( 0 ),
Show Tooltip( 1 ),
Add Table(
Column Table( Statistics( N ) ),
Column Table( Grouping Columns( :Name( "test@7721" ) ), Statistics( Row %, N ) ),
Row Table( Grouping Columns( :Radius ) )
)
)) << Make Into Data Table;
R1:N << Set Property( "Color Gradient", {"Blue to Green to Red", Range( {0, 547, 187.945945945946} )} )
<< Color Cell by Value;