Skip to content

Commit 3cbcbdf

Browse files
committed
chart: highlight only hovered line, dim others on hover
1 parent 0909da1 commit 3cbcbdf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ <h3>Alternative indexes</h3>
604604
<li><a href="https://www.tiobe.com/tiobe-index/" target="_blank" rel="noopener">TIOBE Index</a> — search-engine-based language popularity index</li>
605605
<li><a href="https://pypl.github.io/PYPL.html" target="_blank" rel="noopener">PYPL Index</a> — popularity of programming languages by tutorial searches</li>
606606
<li><a href="https://redmonk.com/sogrady/category/programming-languages/" target="_blank" rel="noopener">RedMonk Rankings</a> — language rankings combining GitHub and Stack Overflow data</li>
607+
<li><a href="https://githut.info/" target="_blank" rel="noopener">GitHut</a> — interactive visualization of programming language activity on GitHub</li>
607608
</ul>
608609
</footer>
609610

@@ -746,7 +747,8 @@ <h3>Alternative indexes</h3>
746747
smooth: true,
747748
symbol: 'none',
748749
lineStyle: { width: 1.5 },
749-
emphasis: { lineStyle: { width: 3 } },
750+
emphasis: { focus: 'self', lineStyle: { width: 3 } },
751+
blur: { lineStyle: { opacity: 0.15 } },
750752
data: months.map(m => {
751753
const v = byMonth.get(m)?.get(lang);
752754
return v != null ? +v.toFixed(2) : null;
@@ -774,6 +776,8 @@ <h3>Alternative indexes</h3>
774776
grid,
775777
tooltip: {
776778
trigger: 'axis',
779+
axisPointer: { type: 'line' },
780+
triggerEmphasis: false,
777781
backgroundColor: '#1c2128',
778782
borderColor: '#30363d',
779783
textStyle: { color: '#e6edf3', fontSize: 12 },

0 commit comments

Comments
 (0)