Changes for page d3js
Last modified by Norbert Schwarz on 2022/10/31 00:00
To version 7.1
edited by Flavius Olaru
on 2013/12/24 14:22
on 2013/12/24 14:22
Change comment:
There is no comment for this version
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- ExtensionCode.ExtensionClass[0]
-
- Description
-
... ... @@ -1,5 +3,3 @@ 1 -= Description = 2 - 3 3 This extension is a helper for loading [[d3 javascript framework>>url:http://d3js.org/]] (d3v3). 4 4 5 5 = Usage = ... ... @@ -11,20 +11,17 @@ 11 11 {{code}}{{d3js minify="false"/}}{{/code}} 12 12 13 13 Or using directly the JavascriptExtension: 14 -{{code}}{{velocity}} 12 +{{code}} 13 +{{velocity}} 15 15 $!xwiki.jsx.use('Macros.d3js', {'minify':false}) 16 -{{/velocity}}{{/code}} 15 +{{/velocity}} 16 +{{/code}} 17 17 18 18 19 -After loading the d3js there is an event triggered in javascript that signals d3 loaded. 20 - Best practice touseit in javascript:21 - {{code}}document.observe('d3:loaded', function(){19 +After loading the d3js there is an event triggered in javascript that signals d3 loaded. Best practice to use it in javascript: 20 +{{code}} 21 +document.observe('d3:loaded', function(){ 22 22 // here is your javascript code that uses the d3 javascript framework. 23 23 console.log("d3js loaded"); 24 -});{{/code}} 25 - 26 -= Release Notes = 27 - 28 -== v1.1 == 29 - 30 -Cache macro used in JavascriptExtension to load contents from attachment once. 24 +}); 25 +{{/code}}
- ExtensionCode.ExtensionVersionClass[0]
-
- Release Notes
-
... ... @@ -1,0 +1,1 @@ 1 +Cache macro used in JavascriptExtension to load contents from attachment once.