mirror of
https://github.com/wownero/diff-chart.git
synced 2026-10-17 15:21:25 +02:00
zoom out maximally on load
This commit is contained in:
@@ -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
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user