Answer the question
In order to leave comments, you need to log in
How to find the minimum distance between points in Google Charts?
Hello, there is a graph with a large number of values (> 1000), but with a width of 200px it is impossible to see anything, how to specify the minimum distance between points and allow the graph to be dragged?
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['1', '2'],
// 1000+ значений
]);
var options = {
title: '...',
explorer: { axis: 'horizontal' }
};
var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question