Archives for: April 2012, 23

23/04/12

Permalink 03:02:46 pm, by sarneil, 255 words, 43 views   English (CA)
Categories: Activity log; Mins. worked: 120

ETCL : more kludges for circleMagic

Various solutions to 7-source constraint imposed by CirclMagic

<!-- kludge that generates solid first ring (which provides no information) and second ring of N coloured wedges with no grey ring outside -->
<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
</detail>
<detail>
<id frequency="2">Cultures18-sub1-1</id>
<id frequency="2">Cultures18-sub1-2</id>
<id frequency="2">Cultures18-sub1-3</id>
<id frequency="2">Cultures18-sub1-4</id>
<id frequency="2">Cultures18-sub1-5</id>
<id frequency="2">Cultures18-sub1-6</id>
<id frequency="2">Cultures18-sub1-7</id>
<id frequency="2">Cultures18-sub1-8</id>
<id frequency="2">Cultures18-sub1-9</id>
</detail>
<detail>
</detail>
</details>
</source>

Above model could obviously be extended to include another ring for Major/Minor. We could use that first ring to indicate staff or public, then within each of those categories have a wedge for each author and the third ring for major/minor for each author.

One problem with any approach that uses the innermost ring as a placeholder is that if the user clicks on that ring, the rest of the circle is greyed out, and that effect makes more sense if the innermost ring is authors, not some grouping of authors.

Permalink 12:15:23 pm, by sarneil, 716 words, 87 views   English (CA)
Categories: Activity log; Mins. worked: 180

etcl : constraints and behaviour of circleMagic

The xml output that my code generates for the The Devonshire Manuscript page on the wiki caused the CircleMagic display to throw an error. Took a couple of hours to figure out the problem.

1) Discovered that if you have more than 7 source elements in the XML file, MagicCircle generates an error message rather than displays the data. The absolute and relative size of the counts in each source element don't seem to matter. I tested to see if there is a similar limit on the number of detail elements, and stopped testing at 18 details within one source

Here's the structure for a source which kind of solves the problem, by using one source and N detail elements in that source resulting in the innermost ring being all one colour and the second ring divided into n wedges. (The empty third detail element suppresses the display of the black outer ring.):

<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
</detail>
<detail>
<id frequency="2">Cultures18-sub1-1</id>
<id frequency="2">Cultures18-sub1-2</id>
<id frequency="2">Cultures18-sub1-3</id>
<id frequency="2">Cultures18-sub1-4</id>
<id frequency="2">Cultures18-sub1-5</id>
<id frequency="2">Cultures18-sub1-6</id>
<id frequency="2">Cultures18-sub1-7</id>
<id frequency="2">Cultures18-sub1-8</id>
<id frequency="2">Cultures18-sub1-9</id>
</detail>
<detail>
</detail>
</details>
</source>

2) Did various test of xml structures to see what would be output, with following results:

<!-- generates a "problem with data" error -->
<source>
<id frequency="18">Cultures18</id>
</source>

<!-- generates a ring of coloured wedges too big to fit into the viewport -->
<source>
<id frequency="18">Cultures18</id>
<details>
</details>
</source>

<!-- generates ring of coloured wedges, what you want for 1-level detail with 7 or fewer sources -->
<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
</detail>
</details>
</source>

<!-- generates ring of coloured wedges with black.dark grey ring outside -->
<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
<id frequency="9">Cultures18-sub1</id>
<id frequency="9">Cultures18-sub2</id>
</detail>
</details>
</source>

<!-- generates two rings of coloured wedges -->
<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
<id frequency="9">Cultures18-sub1-1</id>
<id frequency="9">Cultures18-sub1-2</id>
</detail>
<detail>
</detail>
</details>
</source>

<!-- generates two rings of coloured wedges with black/dark grey ring outside -->
<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
<id frequency="9">Cultures18-sub1-1</id>
<id frequency="9">Cultures18-sub1-2</id>
</detail>
<detail>
<id frequency="6">Cultures18-sub2-1</id>
<id frequency="6">Cultures18-sub2-2</id>
<id frequency="6">Cultures18-sub2-3</id>
</detail>
</details>
</source>

<!-- generates three rings of coloured wedges -->
<source>
<id frequency="18">Cultures18</id>
<details>
<detail>
<id frequency="9">Cultures18-sub1-1</id>
<id frequency="9">Cultures18-sub1-2</id>
</detail>
<detail>
<id frequency="6">Cultures18-sub2-1</id>
<id frequency="6">Cultures18-sub2-2</id>
<id frequency="6">Cultures18-sub2-3</id>
</detail>
<detail>
</detail>
</details>
</source>

Depts

This blog is for work done for academic departments which does not fall under other categories.

Reports

Categories

April 2012
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

XML Feeds