http://chartplay.jui.io/?p=line 라인차트 툴팁 시
data : [
{ apple : 26.1, microsoft : 24.86, oracle : 0 },
{ apple : 43.83, microsoft : 25.14, oracle : 0 },
{ apple : 55.03, microsoft : 24, oracle : 0 },
{ apple : 72.95, microsoft : 25.39, oracle : 0 }
]
1.oracle 값을 0으로 설정 시 microsoft : 24.86 라인에 마우스 오버시 툴팁 24.86이 정상적으로 발생되고 oracle 라인에 마우스 오버시 0값이 아닌 microsoft 라인의 값인 24.86이 툴팁에 나옵니다. (설명이 잘되었나..)
2.filter : true 레전드에 필터시 색깔이 자기 마음되로 변경되고 모두 0인값(oracle) filter 제거하여도 보여지네요
var chart = jui.include("chart.builder");
chart("#result", {
axis : {
x : {
type : "fullblock",
domain : [ "2010", "2011", "2012", "2013" ],
line : true
},
y : {
type : "range",
domain : function(d) {
return Math.max(d.apple, d.microsoft, d.oracle);
},
step : 10
},
data : [
{ apple : 26.1, microsoft : 24.86, oracle : 0 },
{ apple : 43.83, microsoft : 25.14, oracle : 0 },
{ apple : 55.03, microsoft : 24, oracle : 0 },
{ apple : 72.95, microsoft : 25.39, oracle : 0 }
]
},
brush : [{
type : "line",
animate : true
}, {
type : "scatter",
hide : true
}],
widget : [
{ type : "title", text : "Line Sample" },
{ type : "legend" ,filter : true},
{ type : "tooltip", brush : 1 , }
]
});
http://chartplay.jui.io/?p=line 라인차트 툴팁 시 data : [ { apple : 26.1, microsoft : 24.86, oracle : 0 }, { apple : 43.83, microsoft : 25.14, oracle : 0 }, { apple : 55.03, microsoft : 24, oracle : 0 }, { apple : 72.95, microsoft : 25.39, oracle : 0 } ] 1.oracle 값을 0으로 설정 시 microsoft : 24.86 라인에 마우스 오버시 툴팁 24.86이 정상적으로 발생되고 oracle 라인에 마우스 오버시 0값이 아닌 microsoft 라인의 값인 24.86이 툴팁에 나옵니다. (설명이 잘되었나..) 2.filter : true 레전드에 필터시 색깔이 자기 마음되로 변경되고 모두 0인값(oracle) filter 제거하여도 보여지네요