<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17943</bug_id>
          
          <creation_ts>2012-07-18 07:21:08 +0000</creation_ts>
          <short_desc>A way to create a graph would be nice. It might be implemented as a &quot;graph&quot; attribute on the table element or a &lt;graph&gt; element.</short_desc>
          <delta_ts>2012-10-10 02:36:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>duboisp2</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70347</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:21:08 +0000</bug_when>
    <thetext>This was was cloned from bug 16939 as part of operation convergence.
Originally filed: 2012-05-04 23:28:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-05-04 23:28:02 +0000 
--------------------------------------------------------------------------------
Specification: http://www.w3.org/TR/html5/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
A way to create a graph would be nice. It might be implemented as a &quot;graph&quot;
attribute on the table element or a &lt;graph&gt; element.

Posted from: 98.125.138.7
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74711</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-28 03:36:56 +0000</bug_when>
    <thetext>Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74855</commentid>
    <comment_count>2</comment_count>
    <who name="Pierre Dubois">duboisp2</who>
    <bug_when>2012-09-29 02:47:07 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Can you elaborate?

This wasn&apos;t a bug that I reported, but I have interest on generating a graphic from a data table.

I don&apos;t think is a great idea to have a new &quot;graph&quot; element. That might cause some issue in regards of the content accessibility and might be other thing.

I see more reliable of having a new attribute for the table element, like the proposed &quot;graph&quot; attribute.


Supporting graph provide a few challenges like
* Having a powerful table parser able to handle complex tabular structure (See my proposal here http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-September/037475.html)
* Determining how the web editor would be able to customize the chart/graph


I am not sure if is a good idea to have a way to create a graph. 
For me that rely more on:
* having a good table parser defined in the specification 
* having a method to specify the customization of the graph (in javascript or using custom data attribute)
* having canvas or SVG

I already developed a plugin for generating chart and graph from an html table in javascript. For the customization it use a mechanism that use CSS class set on strategic tabular elements. It use the SVG to draw the graphic. Also once the graphic is generated, some WAI-ARIA attribute is used to create a better relationships. You can find more information and working example regarding that project here: https://github.com/wet-boew/wet-boew/wiki/Charts-and-graphs


Do you think there is a needs to provide a way to create a graph when some open source javascript projects already do it ?


:-)

Pierre Dubois</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75785</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-10-10 02:36:41 +0000</bug_when>
    <thetext>If this is requesting a way to turn tabular data into a graph, then I don&apos;t think we&apos;ll be adding this to HTML any time soon, if ever. As Pierre says in comment 2, there&apos;s already some scripts that do this. It&apos;s a hugely complicated problem; if we&apos;re going to solve it, we need to do a lot of research, get all the browser vendors on board, get some graphing experts to explain what all the needs are, figure out how to integrate it with animation and transition features, etc. It&apos;s probably better to not go down that road for the foreseeable future.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>