Utilizing Google visualization charts in my Grails application has been a bit tricky. Specifically, when I add numerous rows of data to the line chart, it starts behaving strangely. Check out these screenshots https://i.sstatic.net/rWdwx.pnghttps://i.sstatic.net/PWzlT.png
Is there a way to prevent this odd scaling issue? I want the scaling to remain consistent whether there is a lot of data or none at all. I'm not concerned about the length of the chart expanding with more data, but rather the size of the hAxis labels and vAxis labels that seem to enlarge unnecessarily. Here is how I have set up the chart:
visualization.draw(visualization_data, {width: 55840, title: 'Wykres wydajności', vAxis: {textPosition: 'in'}, hAxis: {direction: 1, slantedText: true, slantedTextAngle: 90}, pointSize: 10, chartArea: {top: 10, width: '50%', height: '50%', left: 10}, legend: {position: 'right'}});
Additionally, here's the styling I've applied:
#linechart {
overflow-x: scroll;
overflow-y: hidden;
width: 100%;
height: 500px;
}