Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.
AnswersQ10
- In the tutorial it is mentioned that the g element in this example contains „text“ and „rect“ so is the g element like a group which contains all defined CSS elements for a special selection like .chart?
- I hope it's clear after today’s tutorial. <g> is for grouping elements together, but it's not visible. CSS styles applied to this group are applied to all sub-elements.
- Am I right to think „function(d,i)“ is like a loop where d stands for data and i for index?
- Yes, was also discussed in the tutorial today.
- "Does the data import also work with the data type “csv”? Are there differences between tsv and csv?" and "Im Tutorial werden Tab Separated Values verwendet. Gibt es eine Möglichkeit, CSV stattdessen zu verwenden und gibt es des weiteren Gründe, wieso TSV über CSV bevorzugt werden sollte?"
- TSV vs. CSV = tab-separated-values vs. comma-separated-values
Im Grunde spielt es keine Rolle welches verwendet wird.
- Was bedeutet ".35em" ?
- em = width of the char 'M' of the currently used font. So you're basically moving in relation to the font-size
- Why is d3.tsv not smart enough to detect and convert types automatically?
- Because it has no idea what kind of data you're trying to load and how you want them to be accessible.
- Was ist ein "dy" attribute?
- shifts a text along the y-axis
- Ich wäre sehr dankbar, wenn wir im Kurs das Konzept der DataJoins kurz etwas näher umreißen können, da ich mir nicht sicher bin, es wirklich verstanden zu haben
- ist es nun klarer?
- Was sind die Gemeinsamkeiten HTML und SVG?
- SVG ist eine Erweiterung von HTML um graphische Elemente.
- How resource intensive is the rendering of a svg compared to embedding a non vector image?
- Basically SVG-elements are nodes in the DOM-structure so when rendering a lot of objects it may be slower. Especially in comparison to a HTML5-canvas, but here the programming may be not that straightforward.
- SVGs seem to become very complex as soon as an image is made up from more than just a few primitives
- Artists usually use vector-drawing-programs in order to create vector-images. You can simply export such an image as a SVG-file.
- Do all modern browser support svg 100% ? What about mobile browser?
- All current browser-versions should support SVG. See also here: http://caniuse.com/svg
- Ich hatte SVG so verstanden, dass man es direkt anwenden/einbetten kann als eine Art CSS-Erweiterung wenn man die Webpage in HTML5 schreibt, wie passt da der mögliche Export aus Desktop Applikationen dazu?
- Da hast Du ein paar Dinge durcheinandergebracht, SVG ist eine Erweiterung von HTML (mit neuen Tags <rect>, <g>, ...). Du kannst diesen Unterbaum von SVG aus einem Programm exportieren und in ein HTML-Dokument einfügen.
- Ich hab noch nicht ganz verstanden ob SVG CSS völlig ersetzen kann oder ob es mehr ein Teil von JavaScript ist und nur auf die CSS mit eigenen zusätzlichen Features anwendbar ist?
- siehe vorherige Frage. Es ist kein Teil von JavaScript und ist nicht vergleichbar um CSS zu ersetzen!
- Da ich mich privat zur Zeit viel mit PHP beschäftige und mich dafür interessiere: Gibt es D3 nur für JavaScript oder auch für PHP5 bzw. gibtes ähnliche Libaries?
- PHP wird server-seitig verwendet, JavaScript client-seitig. D3 ist für die Client-Seite, wofür würde man es in PHP (auf dem Server) nutzen wollen?
Letzte Änderung: 08.04.2014, 16:04 | 547 Worte