Line chart both axes logarightmic scale, zoom and gridlines count

23 views
Skip to first unread message

Pavel

unread,
May 24, 2017, 10:50:08 AM5/24/17
to Google Visualization API
Hi!
On my line chart I need to both axes logarightmic scale. Seems it's quite easy - set scaleType: 'log'
But when i do this zoom dont work and i can't set gridlines count.


Pavel

unread,
May 24, 2017, 10:53:01 AM5/24/17
to Google Visualization API
this is my config
                  var options = {
title: '',
curveType: 'function',
'legend': {'position': 'left'},
series: this.getSeriesOptions(pointsBySwitcher),
explorer: {
       maxZoomOut:5,
       maxZoomIn:0.25,       
       keepInBounds: true
   },
          vAxis: {
          //logScale: true,
          scaleType: 'log',
          title: 't, сек',
          //format: 'scientific',
          minorGridlines: {
          count: 30
          },
          viewWindow: {
max: this.getMaxVvalue(pointsBySwitcher),
min: 0
},
          gridlines: {
count: 15
},
          },
          hAxis: {
          //logScale: true,
          scaleType: 'log',
          title: 'ln, А',
          minorGridlines: {
          count: 30
          },
          viewWindow: {
max: this.getMaxXvalue(pointsBySwitcher),
min: 0
},
gridlines: {
count: 15
},
          //format: 'scientific'
          //viewWindowMode: 'pretty'
          },          
}; 
 
Reply all
Reply to author
Forward
0 new messages