Open-Assistant
Open-Assistant copied to clipboard
Styling & rearranging of information on stats page
With the latest release of the OA website a stats page was added, see https://open-assistant.io/stats The current page is functional and shows all the numbers but it could benefit from additional styling:
Here are some ideas:
- show lang tags instead of or additionally to the native language names
- display data in tables (i.e. aligned numbers)
- use a different grouping for the section "Message trees states by language", e.g. by state
- (Charts would also be fantastic.)
The current code for the stats components can be found in Stats.components.tsx.
Before the stats page was added we regularly published stats as "text tables" on discord:

What do we think of using https://react-chartjs-2.js.org/? I've been playing around with it a little and have managed to render some pie and doughnut charts from the data, if acceptable I can make a PR for it.

Your proposal looks amazing, @rjmacarthy!
However, I think that showing also numbers could be useful. I have been working in a table for "Message trees states by language". It looks like this:

I think it makes it easier to compare different languages. I could include @andreaskoepf suggestion of adding the code for each language.
Maybe we could mix the two approaches. Do you think is worthy?
@GuilleHoardings yes I think your approach for the states by languages makes sense as a table. If acceptable you could simply copy/rebase the code from my branch into yours and apply the table for the last stat. Here is the code for the charts: https://github.com/rjmacarthy/Open-Assistant/tree/feature/stats-charts
I won't be able to work in it until this evening. If you want to go ahead and do the pull request, I can add the table once it is merged.
@rjmacarthy @GuilleHoardings A combined approach of tabular data + charts would be fantastic!
While you're at it, sort the different tags per language in a fashion that makes sense chronologically. So maybe something like this:
Prompt Lottery Waiting > Initial Prompt Review > Growing > Ranking > Ready for Export > Total Active > Total
The Halted By Moderator and Aborted Low Grade tags could be put before or after the total, depending on whether they should be included to the total message.
Good suggestion, @horribleCodes. I'll do it.
Can this be closed now #1696 is merged?
close because the pr is merged