[스크립트] 색상 그라디언트를 추가하는 방법안녕하세요,
나는 여기에 붙어있어, 나는 색 그라데이션으로 내 열을 포맷하고 싶다. 그러나 아래 스크립트에서는 열 "N"에 색 그라디언트가 적용되지 않습니다. 감사
R1 = (dt << 표 (
보기 제어판 (0),
툴팁 (1) 표시,
표 추가 (
열 표 (통계 (N)),
열 (그룹화 열 (: 이름 ( "test @ 7721"), 통계 (행 %, N)),
행 테이블 (그룹화 열 (: 반경))
)
)) << 데이터 테이블 만들기;
R1 << Column (
"엔",
속성 ( "색상 그라디언트", { "파란색에서 녹색으로 빨간색", 범위 ({0, 547, 187.945945945946})),
값으로 색상 셀 만들기
);
제목 : Re : [Script] 컬러 그라디언트를 추가하는 방법주제를 바꿀 때 새로운 토론을 시작하십시오. 감사!
제목 : Re : [Script] 컬러 그라디언트를 추가하는 방법한 가지 방법이 있습니다.
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] 컬러 그라디언트를 추가하는 방법안녕, 또 다른 질문 :
현재 20 "N"이 있습니다. 스크립트를 수정하여 "N"스크립트를 20 번 변경하지 않아도됩니다.
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] 컬러 그라디언트를 추가하는 방법Hi txnelson,
나는 그런 생각을하지 못했다. 정보를 제공해 주셔서 감사합니다. 너는 아주 큰 도움을 주었다.제목 : Re : [Script] 컬러 그라디언트를 추가하는 방법"값 별 색칠"셀은 별도의 메시지이므로 Color Gradient 속성의 일부로 처리하지 않아도됩니다.
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;