I have a question about Google settings and how to configure them.
I work with a combined chart, and note that I can edit its parameters, since the data is created as part of the code that is inaccessible to me .
What I'm trying to do is change the serial shortcut in the legend and tooltip displayed on hover by simply editing the chart options.
I found out that this series has a labelInLegend property that allows me to edit the displayed label in the legend, but the label inside the tooltip also does not change. Is there a way to achieve this by changing the parameters or somehow, but after the graph has been drawn?
Check this Fiddle to see the problem (ORIGINAL_LABEL is the original serial name I want to change to MY_LABEL in both legends and a tooltip)
google.visualization.arrayToDataTable([
['Month', 'ORIGINAL_LABEL']
]);
var options = {
series: {
0:{ labelInLegend: "MY_LABEL"}
}
};
source
share