FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

Selectable Text from legend #478

Closed melody0711 closed 7 years ago

melody0711 commented 7 years ago

Is it possible to select the text (labels) from the legend in a chart to copy it?

I didn't find somthing like this.

Thanks in advance!

FVANCOP commented 7 years ago

Hi,

Text in canvas can not be selected. However, you can perform an action when you click on the text. In the Samples folder, take the clicktextwithmouse.html as example. In this example, if you click on a text (in the legend or another text), you will see a popup windows with several informations about the text.

See also https://github.com/FVANCOP/ChartNew.js/wiki/100_095_Mouse_Actions

Regards, François

melody0711 commented 7 years ago

Thanks fot the quick answer!

Best regards, Melanie