barcharts with different vAxis overlaps

24 views
Skip to first unread message

Peter Nussbaumer

unread,
Feb 22, 2024, 12:01:47 PMFeb 22
to Google Visualization API
I have 7 values which are grouped to two different vAxis. The values will be displayed but the vAxis 1 overlaps the value from vAxis 0. Picture "chart_1.jpg" shows the values for vAxis0 and in picture "chart_2.jpg" shows all sevenm datas and you can see the values from the vAxis1 overlaps the other values

data for chart_1:
data:
['2023',1208.1068800482801,1522.6740230409428,666.6261694197059,262.90997676579656]
['2024',877.9773417739743,1656.899431167348,823.5818144966997,265.1221691340841]
options:
var options = {
title: ' Total-Verbrauch  ',
colors: ["#FF0000", "#0000FF", "#00CC00", "#F4EE00"],
legend: { position: 'bottom' },
isStacked: true,
series: {},
vAxes: {0: {title: 'Energie kWh'}},
hAxis: {}
};

data for chart_2:
data:
['2023',1208.1068800482801,1522.6740230409428,666.6261694197059,262.90997676579656,2952.394540545187,62.35384097443115,240.977940579578]
['2024',877.9365922736997,1656.5931416699725,823.580906996686,265.10085113412515,3255.3784169743567,70.98278550827023,324.2242630469894]
options:
var options = {
title: 'Total-Verbrauch',
colors: ["#FF0000", "#0000FF", "#00CC00", "#F4EE00", "#FF00FF", "#00FFFF", "#FAA732"],
legend: { position: 'bottom' },
isStacked: true,
series: {0: {targetAxisIndex: 0}, 1: {targetAxisIndex: 0}, 2: {targetAxisIndex: 0}, 3: {targetAxisIndex: 0}, 4: {targetAxisIndex: 1}, 5: {targetAxisIndex: 1}, 6: {targetAxisIndex: 1}},
vAxes: {0: {title: 'Energie kWh'}, 1: {title: 'Energie kWh'}},
hAxis: {}
};

it would be great if anybody can help mechart_1.jpgchart_2.jpg
Reply all
Reply to author
Forward
0 new messages