TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: ScotusWars – see your state's win rate in state vs. state court cases

107 点作者 lordgilman将近 5 年前

10 条评论

JackC将近 5 年前
Cool! If the OP or anyone wants to try this across all US caselaw (as opposed to just Supreme Court) we recently released a data set of citation data at the Caselaw Access Project:<p><a href="https:&#x2F;&#x2F;case.law&#x2F;download&#x2F;citation_graph&#x2F;" rel="nofollow">https:&#x2F;&#x2F;case.law&#x2F;download&#x2F;citation_graph&#x2F;</a><p>I used that data to build a visualization of how often states cite each other, for example:<p><a href="https:&#x2F;&#x2F;case.law&#x2F;exhibits&#x2F;cite-grid" rel="nofollow">https:&#x2F;&#x2F;case.law&#x2F;exhibits&#x2F;cite-grid</a>
6gvONxR4sf7o将近 5 年前
I can&#x27;t exactly put my reasoning to words, but it&#x27;s really nice to see a map of the U.S. include the territories as well as the states.
评论 #23760678 未加载
评论 #23760081 未加载
评论 #23760145 未加载
评论 #23761339 未加载
duxup将近 5 年前
Interesting, not sure this tells you much of anything but it is visually interesting.
评论 #23760705 未加载
dlgeek将近 5 年前
Seems to not show the whole truth for multi-state cases.<p>Ex: <a href="https:&#x2F;&#x2F;www.courtlistener.com&#x2F;opinion&#x2F;147530&#x2F;alabama-v-north-carolina&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.courtlistener.com&#x2F;opinion&#x2F;147530&#x2F;alabama-v-north...</a> just shows as AL v. NC, but it&#x27;s actually Alabama, Florida, Tennessee, Virginia and an interstate commission vs North Carolina.
评论 #23759899 未加载
评论 #23764392 未加载
koolba将近 5 年前
Is there a similar breakdown by federal circuit, judge, and the President that appointed them?<p>Alternatively, anybody know a source for that type of raw data in a machine readable format?
chrismorgan将近 5 年前
This has severe accessibility issues which are fortunately fairly easily remedied. The short explanation of the problem: users of screen readers and others like them will be unable to use this at all.<p>Your map is essentially an imagemap, implemented with SVG rather than a raster image and &lt;map&gt;. But this draws attention to two important things about imagemaps that aren’t implemented: indication of what you’re hovering on, and keyboard accessibility.<p>With an imagemap, each area is a link, so at the very least you’ll see the href in the status bar of your browser in desktop browsers; and you can do better by adding a tooltip with the title attribute.<p>The HTML title attribute translates to the SVG &lt;title&gt; element, which should be the first child of the element it applies to:<p><pre><code> &lt;path …&gt; &lt;title&gt;…&lt;&#x2F;title&gt; &lt;&#x2F;path&gt; </code></pre> Secondly, each state needs to be focusable so that keyboard users and screen readers can click on them.<p>One way of doing that is to just slap tabindex=&quot;0&quot; on each path, and slap a keydown handler on it to detect Enter. That’s an improvement and would make it tolerably accessible, but it’s not the <i>best</i> solution.<p>The best solution is to make each state <i>actually</i> a link. Wrap each &lt;path&gt; element with &lt;a xlink:href=&quot;…&quot;&gt; (remember this is the SVG anchor element, not the HTML one, hence xlink:href. On the latest browsers you can use href instead, but Safari has only supported this for 16 months and Firefox for three years, so xlink:href is safest).<p>The eventual markup should be something like this:<p><pre><code> &lt;svg&gt; &lt;a xlink:href=&quot;#AK&quot;&gt; &lt;title&gt;Alaska&lt;&#x2F;title&gt; &lt;path d=&quot;…&quot;&#x2F;&gt; &lt;&#x2F;a&gt; &lt;a xlink:href=&quot;#CA&quot;&gt; &lt;title&gt;California&lt;&#x2F;title&gt; &lt;path d=&quot;…&quot;&#x2F;&gt; &lt;&#x2F;a&gt; … &lt;&#x2F;svg&gt; </code></pre> And then start actually using the fragment for routing. This has the additional benefit of allowing sharing more precise links. The fragment used for routing should probably not match real document IDs, or else the document would be inclined to scroll underneath you; or else you could use a real one and just negate that. But if the link target is not a real element, add a link click handler that focuses the infobox, so that screen readers get pushed to the right place rather than remaining in the middle of the map.<p>Probably best also to order the paths alphabetically so that screen reader and keyboard users go through them in order.<p>Consider adding :focus and :hover styling too (e.g. change stroke colour, increase stroke-width, adjust fill-opacity, add a filter that tweaks the colour).
augustt将近 5 年前
It seems there&#x27;s an error when you click on MA
评论 #23759812 未加载
评论 #23759871 未加载
preommr将近 5 年前
What&#x27;s with Oklahoma and Texas?
评论 #23760821 未加载
评论 #23760894 未加载
Shared404将近 5 年前
I don&#x27;t know what Iowa has been doing, but they seem... problematic based on this.
评论 #23764126 未加载
sabujp将近 5 年前
click on DC and you&#x27;ll see that the house has a higher chance of winning