색상을 만드는 방법을 보여주는 게시물을 보았지만 이해할 수 없었던 방법을 사용했으며 저에게는 다소 어려웠습니다. 메신저 쉽게이 방법을 사용하여 메신저하지만 그것은 툴팁 내부에서 작동하지 않았다.도구 설명 및 색상이 포함 된 Google 차트
google.charts.load('current', {'packages':['corechart','bar']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Statistics', 'Amount', { role: 'style' } , { role: 'tooltip' }],
['Categories', 5, '#D9534F' , "<img src='https://upload.wikimedia.org/wikipedia/commons/5/52/Xylocopa_virginica_male_face.jpg' width='40px' height = '40px'/>"],
['Posts', 4, '#337AB7' , 'my tooltip'],
['Comments', 8, '#5CB85C' ,'<div>fff</div>'],
['Users', 3, '#F0AD4E' , '<b>hhh</b>'],
]);
var options = {
chart: {
title: 'Analysis',
tooltip: { isHtml: true},
subtitle: '',
},
/* colors: ['#e0440e', '#e6693e', '#ec8f6e', '#f3b49f', '#f6c7b6'], // Another coloring method*/
bars: 'horizontal' // Required for Material Bar Charts.
};
var chart = new google.visualization.BarChart(document.getElementById('barchart_material'));
chart.draw(data, options);
}
덕분에, 누군가가 :) 내가 편집하고 votingdown 전에 무언가를 추가 할 수있는 질문이있는 경우 희망. 첫째
그 도움이되지는 않았지만 x2 +2 :). 의사 차트에 고마워. –