Léim chuig an ábhar
Rannóga
Fiesta

chart-line

Taispeáint Na píosaí beaga foclóra as a gcuirtear scáileán le chéile: stádas, céannacht, dul chun cinn, táblaí sonraí agus cairteacha, agus an t-aon chruth foláirimh.

Tarraingíonn líneachairt sraith amháin thar phointí atá spásáilte go cothrom mar SVG, gan JavaScript. Is HTML iad lipéid na n-ais, agus scipeálann léitheoirí scáileáin an graf. Tá gach luach sa nochtadh Taispeáin na huimhreacha.

Tá gach sampla beo, ach ní théann a naisc áit ar bith. Taispeánann HTML an marcáil le cóipeáil.

Díolacháin sheachtainiúla i gcomparáid le sprioc

Réamhamharc
<div rst-box-head>
  <h2 id="weekly-h">Díolacháin sheachtainiúla</h2>
</div>
<div rst-card>
  <figure rst-chart aria-labelledby="weekly-h" aria-describedby="weekly-d">
    <p rst-chart-desc id="weekly-d">D'ardaigh na díolacháin beagnach gach seachtain agus sháraigh siad an sprioc de 600 i seachtain 6.</p>
    <div rst-chart-plot aria-hidden="true">
      <div rst-chart-y>
        <span>750</span><span>500</span><span>250</span><span>0</span>
      </div>
      <svg viewBox="0 0 1000 1000" preserveAspectRatio="none" focusable="false">
      <path rst-chart-grid d="M0 0H1000M0 333.3H1000M0 666.7H1000"/>
      <path rst-chart-base d="M0 1000H1000"/>
      <path rst-chart-goal d="M0 200H1000"/>
      <polyline rst-chart-line points="0,840 142.9,760 285.7,653.3 428.6,680 571.4,480 714.3,186.7 857.1,133.3 1000,80"/>
      <path rst-chart-ring d="M1000 80h0"/>
      <path rst-chart-dot d="M1000 80h0"/>
      </svg>
      <div rst-chart-hits>
        <span title="Seachtain 1: 120"></span><span title="Seachtain 2: 180"></span><span title="Seachtain 3: 260"></span><span title="Seachtain 4: 240"></span><span title="Seachtain 5: 390"></span><span title="Seachtain 6: 610"></span><span title="Seachtain 7: 650"></span><span title="Seachtain 8: 690"></span>
      </div>
      <div rst-chart-x>
        <span rst-chart-keep>1</span><span>2</span><span rst-chart-keep>3</span><span>4</span><span rst-chart-keep>5</span><span>6</span><span>7</span><span rst-chart-keep>8</span>
      </div>
    </div>
    <p rst-chart-key>Sprioc: 600</p>
    <details rst-chart-data>
      <summary>Taispeáin na huimhreacha</summary>
      <div rst-table-scroll tabindex="0" role="region" aria-labelledby="weekly-h">
        <table rst-table="dense" aria-labelledby="weekly-h">
          <thead>
            <tr>
              <th scope="col">Seachtain</th>
              <th scope="col" rst-num>Díolta</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th scope="row">1</th>
              <td rst-num>120</td>
            </tr>
            <tr>
              <th scope="row">2</th>
              <td rst-num>180</td>
            </tr>
            <tr>
              <th scope="row">3</th>
              <td rst-num>260</td>
            </tr>
            <tr>
              <th scope="row">4</th>
              <td rst-num>240</td>
            </tr>
            <tr>
              <th scope="row">5</th>
              <td rst-num>390</td>
            </tr>
            <tr>
              <th scope="row">6</th>
              <td rst-num>610</td>
            </tr>
            <tr>
              <th scope="row">7</th>
              <td rst-num>650</td>
            </tr>
            <tr>
              <th scope="row">8</th>
              <td rst-num>690</td>
            </tr>
          </tbody>
          <tfoot>
            <tr>
              <th scope="row">Sprioc</th>
              <td rst-num>600</td>
            </tr>
          </tfoot>
        </table>
      </div>
    </details>
  </figure>
</div>

Seachtain gan sonraí

Briseann luach in easnamh an líne agus taispeántar Gan sonraí sa tábla, mar sin ní cheapfar gur nialas é.

Réamhamharc
<div rst-box-head>
  <h2 id="weekly-h">Díolacháin sheachtainiúla</h2>
</div>
<div rst-card>
  <figure rst-chart aria-labelledby="weekly-h" aria-describedby="weekly-d">
    <p rst-chart-desc id="weekly-d">Níor taifeadadh aon díolacháin i seachtain 5; briseann an líne ansin.</p>
    <div rst-chart-plot aria-hidden="true">
      <div rst-chart-y>
        <span>750</span><span>500</span><span>250</span><span>0</span>
      </div>
      <svg viewBox="0 0 1000 1000" preserveAspectRatio="none" focusable="false">
      <path rst-chart-grid d="M0 0H1000M0 333.3H1000M0 666.7H1000"/>
      <path rst-chart-base d="M0 1000H1000"/>
      <path rst-chart-goal d="M0 200H1000"/>
      <polyline rst-chart-line points="0,840 142.9,760 285.7,653.3 428.6,680"/>
      <polyline rst-chart-line points="714.3,186.7 857.1,133.3 1000,80"/>
      <path rst-chart-ring d="M1000 80h0"/>
      <path rst-chart-dot d="M1000 80h0"/>
      </svg>
      <div rst-chart-x>
        <span rst-chart-keep>1</span><span>2</span><span rst-chart-keep>3</span><span>4</span><span rst-chart-keep>5</span><span>6</span><span>7</span><span rst-chart-keep>8</span>
      </div>
    </div>
    <p rst-chart-key>Sprioc: 600</p>
    <details rst-chart-data>
      <summary>Taispeáin na huimhreacha</summary>
      <div rst-table-scroll tabindex="0" role="region" aria-labelledby="weekly-h">
        <table rst-table="dense" aria-labelledby="weekly-h">
          <thead>
            <tr>
              <th scope="col">Seachtain</th>
              <th scope="col" rst-num>Díolta</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th scope="row">1</th>
              <td rst-num>120</td>
            </tr>
            <tr>
              <th scope="row">2</th>
              <td rst-num>180</td>
            </tr>
            <tr>
              <th scope="row">3</th>
              <td rst-num>260</td>
            </tr>
            <tr>
              <th scope="row">4</th>
              <td rst-num>240</td>
            </tr>
            <tr>
              <th scope="row">5</th>
              <td rst-num>Gan sonraí</td>
            </tr>
            <tr>
              <th scope="row">6</th>
              <td rst-num>610</td>
            </tr>
            <tr>
              <th scope="row">7</th>
              <td rst-num>650</td>
            </tr>
            <tr>
              <th scope="row">8</th>
              <td rst-num>690</td>
            </tr>
          </tbody>
          <tfoot>
            <tr>
              <th scope="row">Sprioc</th>
              <td rst-num>600</td>
            </tr>
          </tfoot>
        </table>
      </div>
    </details>
  </figure>
</div>