简体   繁体   中英

How do I increase the row height of Google Timelines Chart?

在此处输入图片说明

I've been working with Google Timeline Charts for a project. As you can see the full text of the event is not displayed. How do I increase the height of rows so that it displays the full text instead?

Was looking for the same thing. Found a workaround... Changing the bar label's font size can be used to change the height of the bar itself. It's crude, but it works!

timeline: {
    barLabelStyle: {
        fontSize: 50
    }
}

Credit goes to https://groups.google.com/forum/m/#!topic/google-visualization-api/IKm5IlMx9es

You can zoom your chart by setting greater value of width

var options = {
    width : 2000,
    ...
};

About CSS (comments). After chart.draw() there is SVG object contains chart. You can select elements like svg > g:nth-child(5) > rect and change properties.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM