wop commited on
Commit
8fcf19d
·
verified ·
1 Parent(s): 7ce9691

Add pie chart

Browse files
Files changed (1) hide show
  1. index.html +39 -2
index.html CHANGED
@@ -49,7 +49,8 @@
49
  .org-mihaipopa { background: #93c6aa33; color: var(--mihaipopa); }
50
  .org-cromia { background: #ffffff33; color: var(--cromia); }
51
  .org-wop { background: #ff9b5033; color: var(--wop); }
52
-
 
53
  .row-compactai { border-left: 3px solid var(--compactai); }
54
  .row-supralabs { border-left: 3px solid var(--supralabs); }
55
  .row-axiomiclabs { border-left: 3px solid var(--axiomiclabs); }
@@ -143,10 +144,13 @@
143
  <span>Yellow shaded area: models outperforming expectations for their size</span>
144
  </div>
145
  </div>
 
 
 
 
146
  </div>
147
 
148
 
149
-
150
  <div class="methodology" style="margin-top:1.5rem">
151
  <h3>Add your model</h3>
152
  <p>
@@ -722,6 +726,39 @@ window.addEventListener('DOMContentLoaded', () => {
722
  buildChart('wikiChart', 'wiki', 'WikiText-2 Perplexity', true);
723
  buildEfficiencyChart();
724
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
725
  </script>
726
  </body>
727
  </html>
 
49
  .org-mihaipopa { background: #93c6aa33; color: var(--mihaipopa); }
50
  .org-cromia { background: #ffffff33; color: var(--cromia); }
51
  .org-wop { background: #ff9b5033; color: var(--wop); }
52
+ .chart-card.pie { grid-column: 1 / -1; }
53
+
54
  .row-compactai { border-left: 3px solid var(--compactai); }
55
  .row-supralabs { border-left: 3px solid var(--supralabs); }
56
  .row-axiomiclabs { border-left: 3px solid var(--axiomiclabs); }
 
144
  <span>Yellow shaded area: models outperforming expectations for their size</span>
145
  </div>
146
  </div>
147
+ <div class="chart-card pie">
148
+ <h3>Models Released by Org</h3>
149
+ <canvas id="orgCountChart"></canvas>
150
+ </div>
151
  </div>
152
 
153
 
 
154
  <div class="methodology" style="margin-top:1.5rem">
155
  <h3>Add your model</h3>
156
  <p>
 
726
  buildChart('wikiChart', 'wiki', 'WikiText-2 Perplexity', true);
727
  buildEfficiencyChart();
728
  });
729
+
730
+ function buildOrgCountChart() {
731
+ const orgCounts = {};
732
+ models.forEach(m => {
733
+ orgCounts[m.org] = (orgCounts[m.org] || 0) + 1;
734
+ });
735
+
736
+ const orgs = Object.keys(orgCounts).sort((a, b) => orgCounts[b] - orgCounts[a]);
737
+
738
+ new Chart(document.getElementById('orgCountChart'), {
739
+ type: 'doughnut',
740
+ data: {
741
+ labels: orgs.map(org => orgNameMap[org]),
742
+ datasets: [{
743
+ data: orgs.map(org => orgCounts[org]),
744
+ backgroundColor: orgs.map(org => colorMap[org]),
745
+ borderColor: '#161b22',
746
+ borderWidth: 2
747
+ }]
748
+ },
749
+ options: {
750
+ responsive: true,
751
+ plugins: {
752
+ legend: {
753
+ position: 'bottom',
754
+ labels: { color: '#c9d1d9', padding: 15 }
755
+ }
756
+ }
757
+ }
758
+ });
759
+ }
760
+
761
+ buildOrgCountChart();
762
  </script>
763
  </body>
764
  </html>