How to prevent legend labels being cut off in Google charts

前端 未结 2 539
时光取名叫无心
时光取名叫无心 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

提交回复
热议问题