LEYUN · SITE SPEC & COMPONENT LIBRARY独立站技术规范手册

Chart Template and Accessibility Rules for B2B Technical Pages

Section:DATA TABLE SPEC · Reviewed:2026-11-20 · Template asset

Key takeawayThis section defines the structure template, field dictionary, integration points and compliance boundaries for 「Chart Template and Accessibility Rules for B2B Technical Pages」 in DATA TABLE SPEC. Templates are for reference only; verify local regulations and platform rules before launch.

Industries and use cases

  • Categories that express selection logic through charts, such as load-stroke curves or duty-range diagrams
  • Sites that want chart content to be understood by search engines
  • Cases where charts exist only as images and the information cannot be retrieved
  • Scenarios that need to show parameter relationships at a glance
Template / code snippethtml
<!-- 图表的文本替代:图表本身可以是图片,
     但关键数据必须同时以文本形式存在 -->
<figure class="chart">
  <img src="/img/charts/model-a-torque-curve.png"
       alt="MODEL-A 输出扭矩与转速关系曲线:1500 转时峰值扭矩 320 N·m,
            2000 转时降至 280 N·m,额定连续扭矩 250 N·m"
       width="960" height="540" loading="lazy">
  <figcaption>
    图 1 MODEL-A 输出扭矩-转速特性(数据来源:厂家实测)
  </figcaption>
</figure>

<!-- 图表对应的数据表:与图片并存 -->
<table class="chart-data">
  <caption>MODEL-A 扭矩-转速特性数据</caption>
  <thead>
    <tr><th scope="col">转速(r/min)</th>
      <th scope="col">峰值扭矩(N·m)</th>
      <th scope="col">连续扭矩(N·m)</th></tr>
  </thead>
  <tbody>
    <tr><th scope="row">1500</th><td>320</td><td>250</td></tr>
    <tr><th scope="row">2000</th><td>280</td><td>250</td></tr>
  </tbody>
</table>

<!-- alt 写法要点:不要写"扭矩曲线图",
     要写出图里的关键数据点,让机器能读到内容 -->
Fields and parameters
Field / parameterTypeDescription and values
Image altTextKey data points from the chart, not just its title
figcaptionTextFigure number, description and data source
Image dimensionsNumber + pxwidth/height attributes to prevent layout shift
Data tableTableMirrors the chart for machine reading
Loading strategyAttributeEager for above-the-fold images, lazy for the rest
Data sourceTextStated in the figure or table note

SEO and structured-data notes

SEO and structured-data checkpoints
Every chart needs a data tableNumbers inside an image cannot be retrieved; the data table is the only route for chart content to be cited
Write data into alt, not the chart title"Torque curve" conveys nothing; the key data points do
figcaption carries number and source"Figure 1" paired with "as shown in Figure 1" in the body makes the image-text relationship parseable
Set width and height on imagesOmitting them causes layout shift during loading and hurts CLS
Do not lazy-load the first-screen imageA lazy hero image directly slows LCP
One chart, one messageSeveral curves overlaid in one image are hard to read and hard to extract structurally

Compliance risk notes

  • Chart data must match the actual product
  • Illustrative diagrams must not be presented as measured data without a label
  • Comparison charts must not mislead by truncating an axis
  • Third-party chart assets must be licensed for use
  • Unverifiable claims must not appear inside a chart

Do not reuse this template verbatim in regulated contexts; verify local regulations and platform rules before going live.

Modification example

<!-- Modification example: change alt from a chart title to data-bearing text -->
<!-- Original -->
<img src="/img/charts/model-a-torque.png" alt="Torque curve">

<!-- Modified -->
<img src="/img/charts/model-a-torque.png"
     alt="MODEL-A output torque versus speed: peak torque 350 N·m at 1000 r/min,
          320 N·m at 1500 r/min, 280 N·m at 2000 r/min,
          continuous torque held at 250 N·m throughout"
     width="960" height="540">

<figcaption>
  Figure 1 MODEL-A output torque versus speed.
  Horizontal axis is speed (r/min), vertical axis is torque (N·m).
  Data source: manufacturer measurements, sample size 3 units.
</figcaption>

<!-- Why this is worth the effort:
     the data points in alt serve three scenarios at once —
     1. screen reader users hear the key parameters
     2. search engines and models understand what the chart shows
     3. if the image fails to load, alt still carries the core information
     The figcaption adds "manufacturer measurements, sample size 3 units";
     stating the sample size is the key credibility signal in this context. -->

FAQ

Does every chart need a companion data table?
Recommended. The chart provides intuition, the table provides retrieval and citation; the cost is low and the role cannot be replaced.
How long should alt text be?
Long enough to include the key data points, usually 30 to 80 words. Shorter carries no information; much longer reads as machine-generated.
Can I skip the table if the chart is secondary?
If the chart carries core information, do not skip it. An image-only chart is close to invisible in AI retrieval.
Are SVG charts better than image charts?
Text inside SVG is theoretically crawlable, but most parsers do not read text nodes inside SVG, so the practical result is similar to an image. The companion data table is what matters.
Version notes2026-11-20: first release, compiled from official Google documentation and public technical sources; updated as engine rules change. Engine behaviour details follow the latest official Google documentation.

Note: this page is a summary of publicly documented search-engine rules and is for self-check reference only. Engine behaviour is subject to the latest official Google documentation; verify against your own Search Console data.