सामग्री पर जाएँ
अनुभाग
Fiesta

chart-line

प्रदर्शन वे छोटे शब्दावली टुकड़े जिनसे स्क्रीन जुड़ती है: स्थिति, पहचान, प्रगति, डेटा तालिकाएँ और चार्ट, और चेतावनी का इकलौता रूप।

लाइन चार्ट बराबर दूरी वाले बिंदुओं पर एक शृंखला SVG के रूप में बनाता है, बिना JavaScript के। अक्षों के लेबल HTML हैं, और स्क्रीन रीडर प्लॉट को छोड़ देते हैं। “आँकड़े दिखाएँ” वाले खुलने वाले हिस्से में हर मान है।

हर उदाहरण असली है, पर उसके लिंक कहीं नहीं ले जाते। HTML कॉपी करने के लिए मार्कअप दिखाता है।

लक्ष्य के मुक़ाबले साप्ताहिक बिक्री

पूर्वावलोकन
<div rst-box-head>
  <h2 id="weekly-h">साप्ताहिक बिक्री</h2>
</div>
<div rst-card>
  <figure rst-chart aria-labelledby="weekly-h" aria-describedby="weekly-d">
    <p rst-chart-desc id="weekly-d">बिक्री लगभग हर हफ़्ते बढ़ी और हफ़्ते 6 में 600 का लक्ष्य पार कर गई।</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="हफ़्ता 1: 120"></span><span title="हफ़्ता 2: 180"></span><span title="हफ़्ता 3: 260"></span><span title="हफ़्ता 4: 240"></span><span title="हफ़्ता 5: 390"></span><span title="हफ़्ता 6: 610"></span><span title="हफ़्ता 7: 650"></span><span title="हफ़्ता 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>लक्ष्य: 600</p>
    <details rst-chart-data>
      <summary>आँकड़े दिखाएँ</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">हफ़्ता</th>
              <th scope="col" rst-num>बिके</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">लक्ष्य</th>
              <td rst-num>600</td>
            </tr>
          </tfoot>
        </table>
      </div>
    </details>
  </figure>
</div>

बिना डेटा वाला एक हफ़्ता

छूटा हुआ मान रेखा तोड़ देता है और तालिका में “कोई डेटा नहीं” के रूप में दिखता है, ताकि उसे शून्य न समझा जाए।

पूर्वावलोकन
<div rst-box-head>
  <h2 id="weekly-h">साप्ताहिक बिक्री</h2>
</div>
<div rst-card>
  <figure rst-chart aria-labelledby="weekly-h" aria-describedby="weekly-d">
    <p rst-chart-desc id="weekly-d">हफ़्ते 5 में कोई बिक्री दर्ज नहीं हुई; वहाँ रेखा टूट जाती है।</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>लक्ष्य: 600</p>
    <details rst-chart-data>
      <summary>आँकड़े दिखाएँ</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">हफ़्ता</th>
              <th scope="col" rst-num>बिके</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>कोई डेटा नहीं</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">लक्ष्य</th>
              <td rst-num>600</td>
            </tr>
          </tfoot>
        </table>
      </div>
    </details>
  </figure>
</div>