올해와 올해 작년의 막대 차트 및 데이터 집합 "올해"& "이전 연도"에 대한 레이블이 표시되지 않습니다. 이 기능은 다중 데이터 세트를 나란히 비교할 때 특히 유용하므로 어떤 도움도 크게 받으실 수 있습니다. 길을 내 chartjs 버전으로 은 2.1.4Chartjs 막대 데이터 집합 레이블이 표시되지 않습니다.
var chartdata = {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
// labels: month,
datasets: [
{
label: 'this year',
backgroundColor: '#26B99A',
data: sold1
},
{
label: 'previous year',
backgroundColor: '#03586A',
data: sold2
}
]
}
};
확인이 스레드를 여전히 대답을해야하는 경우 : https://stackoverflow.com/questions/24510278/chart -js-multitooltip-labels –