Line charts decimal problems

54 views
Skip to first unread message

Vladimir Yakushev

unread,
Feb 26, 2016, 4:30:12 PM2/26/16
to Google Visualization API
Hello 

Got troubles with Line Chart. I use mask to show digits after decimal, but it looks as mask is ignored - screen attach (LineCharts). It shows obnly three digits...When I do the same in bar chart it work fine - screen atttach (BarCharts)


here is code I have for LineCharts:

var options = {
              hAxis: {
                 format: '#.######',
                 title: ''
              },
              vAxis: {
                 format: '#.######',
               title: 'тыс. чел.',
               viewWindow: {
                      min: 0
                  }
              },
              series: {
               0: {curveType: 'function'},
               1: {curveType: 'function'},
               2: {curveType: 'function'},
               3: {curveType: 'function'},
               4: {curveType: 'function'},
               5: {curveType: 'function'},
               6: {curveType: 'function'},
               7: {curveType: 'function'}
              },
              height: 600,
              //width: 1100
          };

          google.charts.setOnLoadCallback(drawLine(dataGoogle, options));

LineCharts.png
BarCharts.png

Daniel LaLiberte

unread,
Feb 26, 2016, 7:00:23 PM2/26/16
to Google Visualization API
I believe what you want is '0's instead of '#' in your format.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/21a17b6a-f7ff-4bfa-bb4d-a27f796baf7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages