Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How should i do this...
#2
That's a new one. I'll propose this structure:

Code:
<chart>
     <column>
           <a>0</a>
           <b>0</b>
           <result>0</result>
     </column>
     <column>
           <a>0</a>
           <b>1</b>
           <result>0</result>
     </column>
     <column>
           <a>1</a>
           <b>0</b>
           <result>0</result>
     </column>
     <column>
           <a>1</a>
           <b>1</b>
           <result>1</result>
     </column>
</chart>

That shouldn't confuse a script too much. If rows, use a horizontal layout. If columns, use a vertical. Else, crap out with an error.

Don't do it just yet. If someone has any suggestions, I'd gladly take them. I'm toying with the idea of replace "row" and "column" with "group" and adding a layout attribute, but I don't know.

Some people may prefer "col" to "column" I do a lot of cutting and pasting when doing html/xml though, so I prefer readability. However, some people may like "col" better, and I can live with that if you prefer it also.

Also, use alias for any wierd column names, as described in the manual.
Reply


Messages In This Thread
How should i do this... - by SotSvart - 04-21-2005, 11:09 PM
How should i do this... - by Jofers - 04-21-2005, 11:59 PM
How should i do this... - by SotSvart - 04-22-2005, 12:59 PM
How should i do this... - by Jofers - 04-22-2005, 06:32 PM
How should i do this - by D.slert - 11-20-2009, 01:27 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)