chart-bar
Presentación Las piezas pequeñas de vocabulario con las que se arma una pantalla: estado, identidad, progreso, tablas de datos y gráficos, y la única forma de aviso.
Un gráfico de barras muestra categorías con nombre en forma de barras: una sola serie de valores de cero o más. Es una tabla, así que los lectores de pantalla reciben los nombres y los números; las barras son decoración.
Cada ejemplo funciona de verdad, pero sus enlaces no llevan a ninguna parte. HTML muestra el marcado para copiar.
Entradas por origen
<div rst-box-head >
<h2 id ="sources-h" >Entradas por origen</h2 >
</div >
<div rst-card >
<figure rst-chart aria-labelledby ="sources-h" aria-describedby ="sources-d" >
<p rst-chart-desc id ="sources-d" >La mayoría de las entradas se vendieron en línea y, por el boletín, ninguna todavía.</p >
<div rst-table-scroll tabindex ="0" role ="region" aria-labelledby ="sources-h" >
<table rst-table ="bars" aria-labelledby ="sources-h" aria-describedby ="sources-d" >
<thead >
<tr >
<th scope ="col" >Origen</th >
<th scope ="col" >
<span class ="rst-sr-only" >Barra</span >
</th >
<th scope ="col" rst-num >Entradas</th >
</tr >
</thead >
<tbody >
<tr >
<th scope ="row" >En línea</th >
<td rst-table-bar >
<svg viewBox ="0 0 1000 1" preserveAspectRatio ="none" aria-hidden ="true" focusable ="false" ><rect width ="1000" height ="1" /></svg >
</td >
<td rst-num >412</td >
</tr >
<tr >
<th scope ="row" >Taquilla</th >
<td rst-table-bar >
<svg viewBox ="0 0 1000 1" preserveAspectRatio ="none" aria-hidden ="true" focusable ="false" ><rect width ="572.8" height ="1" /></svg >
</td >
<td rst-num >236</td >
</tr >
<tr >
<th scope ="row" >Socios</th >
<td rst-table-bar >
<svg viewBox ="0 0 1000 1" preserveAspectRatio ="none" aria-hidden ="true" focusable ="false" ><rect width ="237.9" height ="1" /></svg >
</td >
<td rst-num >98</td >
</tr >
<tr >
<th scope ="row" >Boletín</th >
<td rst-table-bar >
<svg viewBox ="0 0 1000 1" preserveAspectRatio ="none" aria-hidden ="true" focusable ="false" ><rect width ="0" height ="1" /></svg >
</td >
<td rst-num >0</td >
</tr >
</tbody >
</table >
</div >
</figure >
</div >
Sin datos
Un gráfico sin nada que dibujar lo dice en una frase.
<div rst-box-head >
<h2 id ="sources-h" >Entradas por origen</h2 >
</div >
<div rst-card >
<figure rst-chart aria-labelledby ="sources-h" >
<p rst-chart-empty >Todavía no se ha vendido ninguna entrada.</p >
</figure >
</div >