WandererXII / lishogi

☗ lishogi.org: the forever free, adless and open source shogi server forked from lichess.org ☗
https://lishogi.org
GNU Affero General Public License v3.0
263 stars 40 forks source link

Update ratingDistribution.js #771

Closed The-User-Python closed 7 months ago

The-User-Python commented 7 months ago

This code defines a function lishogi.ratingDistributionChart that generates a Highcharts chart representing the distribution of chess player ratings. It uses the frequency of ratings and calculates the cumulative percentage. The chart is then rendered in the HTML element with the id rating_distribution_chart. The code includes various configurations for styling, legends, and axes, along with translations for internationalization. The user's rating is highlighted with a dashed line on the chart.

WandererXII commented 7 months ago

Hey, thanks for the contribution. Is there any functional change and have you tested that it works, what if data.myRating is null | undefined?

The-User-Python commented 7 months ago

wait lemme create another pull request by doing some more additions in it .