How to prevent legend labels being cut off in Google charts

前端 未结 2 533
时光取名叫无心
时光取名叫无心 2021-01-01 12:01

With a Perl script I generate numerous Google Line Charts for 20 and more series of data at once.

The legend labels are of the form: a serial number appended by an i

相关标签:
2条回答
  • 2021-01-01 12:06

    To get full legend in your chart just add chartArea width and height as below

    var options = {
                  title: csv,
                  width: 800,
                  height: 600,
                  chartArea: {  width: "50%", height: "70%" }
    };
    

    Take a look at this jqfaq.com to get a working sample

    0 讨论(0)
  • 2021-01-01 12:10

    in chartArea, make width 30 percent move the graph to the center.

    chartArea: { width: "30%", height: "50%" }

    0 讨论(0)
提交回复
热议问题