2014-05-11 2 views
-2

이 분산 형 차트와 샘플 데이터가 있습니다. 웬일인지, 나는 보이지 않는/보이지 않는 거품을 본다. Y 축 (6시) 및 더 많은 점. 내가 잘못했거나 벌레를하고 있니?nvd3 분산 형 차트의 보이지 않는 거품

nv.addGraph(function() { 

var chart = nv.models.scatterChart() 
    .showDistX(true) //showDist, when true, will display those little distribution lines on the axis. 
.showDistY(true) 
    .transitionDuration(350) 
    .color(['#1f77b4']) 
    .margin({ 
    left: 150, 
    right: 150 
}) 
    .showLegend(false) 
    .sizeRange([50, 5000]) 
    .interactive(true); 

//Configure how the tooltip looks. 
chart.tooltipContent(function (key) { 
    return '<center><b>Value</b><br><h3>' + key + '</h3></center>'; 
}); 


chart.forceY(0) 

//Axis settings 
chart.xAxis.tickFormat(function (d) { 
    return d3.time.format('%b %d')(new Date(d)); 
}); 
chart.yAxis.tickFormat(function (d) { 
    return d; 
}); 

//We want to show shapes other than circles. 
chart.scatter.onlyCircles(true); 

d3.select('#categories-viewed-scatterchart svg') 
    .datum(data) 
    .call(chart); 

nv.utils.windowResize(chart.update); 

return chart; 
}); 

Jsfiddle는 : http://jsfiddle.net/eyedagger/4Dm9D/

+0

무슨 뜻인지 확실치 않습니다. 보이는 보이지 않는 거품은 어디에 있습니까? –

+0

y (6)에 마우스를 올리면 도구 설명이 표시됩니다. 그러나 그들을 대표하는 거품이 없습니다. – Avinash

답변

0

내가 데이터를 저장 한 방법은 문제라고 밝혀졌습니다. 각 데이터 세트에 대한 키가 있었고, 데이터 세트 그룹에 고유 한 키가 있어야했습니다.

키가 복제 된 것처럼 보이면 문제가 발생합니다.

관련 문제