jolav / codetabs

Free Online Services. Github/GitLab star history. Count Lines of Code. CORS proxy server. IP GeoLocation. HTTP Headers. Random Data. Api weather temp. Alexa ranking.
https://codetabs.com
BSD 3-Clause "New" or "Revised" License
238 stars 32 forks source link

Color of squares differs from pie's #7

Closed teaalltr closed 5 years ago

teaalltr commented 5 years ago

In the language percentage pie graph, when clicking/tapping on a slice of the pie, the color changes. The square on it with the language name label also changes (accordingly, it should), but is instead always late, i.e. when re-clicking on the pie, it gets the color the slice had one click before

jolav-old-account commented 5 years ago

You're right.

As soon as I've got a little time, I'll look into it.

jolav-old-account commented 5 years ago

Issue is related to these chartjs issues

Dynamically update tooltip when hovering
Update tooltip content and styling on update()

At the moment the solution is not to show tooltip colors.

toolips: {
  displayColors: false,
}