google / google-visualization-issues

288 stars 35 forks source link

Not able to change the label of Previous Data to any custom label when there are more number of legends #3014

Open nkarchana opened 3 weeks ago

nkarchana commented 3 weeks ago

Hi,

I am trying to change the legend name of Previous Data in a diff chart to a custom label. It works fine when there are less number of legends or when the page path of legend is not shown. Is there any way that I can get control on click of the below path so that I can change the previous data to benchmark present in the second set? image

nkarchana commented 2 weeks ago

Hi, Any updates on this?

nkarchana commented 2 weeks ago

@dlaliberte Is this taken as an enhancement and not a feature currently available in any of the google chart versions?

dlaliberte commented 2 weeks ago

There is no option to change the "Previous Data" heading, as far as I am aware. The enhancement I was thinking of would allow you to change that label so that it would apply in all the contexts that are appropriate, specifically tooltips and legends.

If you made a customization to the content of the generated SVG, then that is beyond what the API supports. When there are more legend items than fit on one "page" of items, then you will have to catch the click on the legend paging arrow to apply that change again.

nkarchana commented 2 weeks ago

@dlaliberte Is there anything that the google charts api provides to catch the click on the legend paging arrow?