juijs / jui-chart

SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D, Realtime)
https://codepen.io/collection/nLydod/
57 stars 25 forks source link

라인차트 관련 문의 #70

Closed ahnjunwoo closed 8 years ago

ahnjunwoo commented 8 years ago

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 , }
]
});
ahnjunwoo commented 8 years ago

k-002 k-003 k-005

seogi1004 commented 8 years ago

@ahnjunwoo 친절하게 스샷까지! 금일 확인해서 알려드리겠습니다! ㅎㅎ

ahnjunwoo commented 8 years ago

oracle 값이 0이여도 그래프에 표시가 되요ㅠ

seogi1004 commented 8 years ago

@ahnjunwoo 문제의 원인이 파악되었습니다. 수정되면 알려드릴게요. ㅋㅋ

seogi1004 commented 8 years ago

@ahnjunwoo 답변이 늦어서 죄송합니다. develop 브랜치 체크아웃 받으시면 됩니다!