기타 도형
페이지 정보
작성자 황경환 작성일 2020-12-15 15:28 조회 3,085회 댓글 0건본문
관련링크
안녕하세요.
도형 모델에...
variables 값 도형 최초 add 이후에 변경이가능한가요?
아래 variables의 capavalue 값이 변경되어서.... 도형 크기가 시트 셀의 값(사용자 조회)에 따라서 도형사이즈가 유동적으로 변경되게 하려합니다..
그리고... variables의 capavalue 값의 수식을 세팅해서.. export하고 import(formJSON) 시 에러 발생하여....
시티가 생성되지 않습니다.
답변 부탁드립니다.
[도형모델]
var verticalGauge2 = {
variables : {
w : "=width",
h : "=height",
mincapa : "", //변경
maxcapa : "", //변경
capavalue : "", // 외부 참조값 할당
hpercent : "=variables.capavalue/(variables.maxcapa-variables.mincapa)*100" // percent
},
options: {
fill: {
type: 1,
color: "rgba(100,205,100,1)",
color2: "",
transparency: 0
},
stroke: {
type: 1,
width: 1,
color: "rgba(0,0,0,1)"
}
},
path: [
[
["M", 0, 0],
["L", "=variables.w", 0],
["Z"]
],
[
["M", "=variables.w", 0],
["L", "=variables.w", "=controls.0.y"],
["Z"]
],
[
["M", "=variables.w", "=controls.0.y"],
["L", 0, "=controls.0.y"],
["Z"]
],
[
["M", 0, "=controls.0.y"],
["L", 0, 0],
["Z"]
],
[
["M", 0, "=controls.0.y"],
["L", 0, "=variables.h"],
["L", "=variables.w", "=variables.h"],
["L", "=variables.w", "=controls.0.y"],
["Z"]
],
],
controls : [
{
x: 0, // formula used to provide position and range limitation (here default at position (0, 0.2 * width), and the y range from 0 to 0.5*width)
y: "=BOUND(height -height*variables.hpercent/100,0, false, 0,height)",
//y: "=BOUND(height -Sheet1!A1, false, 0,height)",
xBehavior: 1, // 0 if adjust in x (horizontal), otherwise 1
yBehavior: 0 // 0 if adjust in y (vertical), otherwise 1
}
]
};
댓글목록
등록된 댓글이 없습니다.