zoom out maximally on load

This commit is contained in:
stoffu
2018-07-26 13:31:04 +09:00
parent b4e0dfa72e
commit 6556a77081
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ zoomChart();
// this method is called when chart is first inited as we listen for "rendered" event
function zoomChart() {
// different zoom methods can be used - zoomToIndexes, zoomToDates, zoomToCategoryValues
chart.zoomToIndexes(chartData.length - 40, chartData.length - 1);
chart.zoomToIndexes(0, chartData.length - 1);
}
function toggleLogScale() {
+1 -1
View File
@@ -107,7 +107,7 @@ zoomChart();
// this method is called when chart is first inited as we listen for "rendered" event
function zoomChart() {
// different zoom methods can be used - zoomToIndexes, zoomToDates, zoomToCategoryValues
chart.zoomToIndexes(chartData.length - 40, chartData.length - 1);
chart.zoomToIndexes(0, chartData.length - 1);
}
function toggleLogScale() {