mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: make chart legend visibility configurable via show_legend
assign
This commit is contained in:
parent
b4535bd29b
commit
35dfd13ddd
2 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||||
options: {
|
options: {
|
||||||
plugins: {
|
plugins: {
|
||||||
legend: {
|
legend: {
|
||||||
display: false,
|
display: {% if show_legend == false %}false{% else %}true{% endif %},
|
||||||
labels: {
|
labels: {
|
||||||
generateLabels: function(chart) {
|
generateLabels: function(chart) {
|
||||||
return [
|
return [
|
||||||
|
|
|
@ -63,6 +63,7 @@ which improved when paired with many different editor models.
|
||||||
{% assign data_source = edit_sorted %}
|
{% assign data_source = edit_sorted %}
|
||||||
{% assign pass_rate_field = "pass_rate_2" %}
|
{% assign pass_rate_field = "pass_rate_2" %}
|
||||||
{% assign highlight_model = "+" %}
|
{% assign highlight_model = "+" %}
|
||||||
|
{% assign show_legend = false %}
|
||||||
{% include leaderboard.js %}
|
{% include leaderboard.js %}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue