marcomachadosantos / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

allow alternate date formats #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
at least in microformat mode, allow dates in years, YYYYMM, YYYYMMDD, YYYY/MM, 
YYYY-MM-
DD, etc.  

Original issue reported on code.google.com by socon...@gmail.com on 20 Feb 2008 at 12:25

GoogleCodeExporter commented 9 years ago
<table>
<colgroup>
 <col class="cmf-dateformat" title="YYYY">
</colgroup>
<tr><th>year</th></tr>
<tr><td>1999</td></tr>
<tr><td>2000</td></tr>
</table>

Original comment by socon...@gmail.com on 12 Mar 2008 at 11:28

GoogleCodeExporter commented 9 years ago
The header must be in a <THEAD> and the data in a <TBODY>, here's a complete 
example:
<table id="microformatdemo" class="cmf-chart">
    <colgroup>
      <col class="cmf-dateformat" title="yyyy">
    </colgroup>
    <thead>
        <tr>
            <th>Time</th>
            <th>GDP</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1953</td>
            <td>1000</td>
        </tr>
        <tr>
            <td>1954</td>
            <td>3000</td>
        </tr>
        <tr>
            <td>1955</td>
            <td>3100</td>
        </tr>
        <tr>
            <td>1956</td>
            <td>3200</td>
        </tr>
        <tr>
            <td>1957</td>
            <td>3250</td>
        </tr>
        <tr>
            <td>1958</td>
            <td>3300</td>
        </tr>
        <tr>
            <td>1959</td>
            <td>3325</td>
        </tr>
        <tr>
            <td>1960</td>
            <td>1900</td>
        </tr>
        <tr>
            <td>1961</td>
            <td>1800</td>
        </tr>
        <tr>
            <td>1962</td>
            <td>2000</td>
        </tr>
        <tr>
            <td>1963</td>
            <td>2100</td>
        </tr>
        <tr>
            <td>1964</td>
            <td>2200</td>
        </tr>
    </tbody>
</table>

Original comment by cromwell...@gmail.com on 13 Mar 2008 at 10:33