Làm thế nào tôi có thể tập trung các tiêu đề trong một Chart Line từ Charts API của Google (Không phải Google Chart Images)Trung tâm Align Tiêu đề Google Chart
Tôi không thấy bất kỳ tùy chọn như titlePosition: 'trung tâm'
Cảm ơn !
function drawVisualization() {
// Create and populate the data table.
var data = google.visualization.arrayToDataTable([
['xValues', 'yValues'],
[0, 34.92],
[389, 39.44],
[488, 52.11],
[652, 55.4]
]);
var options = {
curveType: 'none', // 'function'
title: 'Title',
titleTextStyle: {
color: '333333',
fontName: 'Arial',
fontSize: 10
},
legend: 'none',
enableInteractivity: false
};
var chart = new google.visualization.LineChart(document.getElementById('visualization'));
chart.draw(data, options);
}
Bản sao có thể có của [Biểu đồ Google: Vị trí tiêu đề biểu đồ hình tròn] (http://stackoverflow.com/questions/16282210/google-charts-pie-chart-title-position) – Adam