Hi everybody,
i try to make a d3 extension for lumira. I found the blog from Matt Llyod but i have two problems. First the explanation is for another version of the vizpacker, so I get problems even by the example from him. Second I want to add a parcoord (!?) . If i try to use the code i become the following error message:
Uncaught Error: Mismatched anonymous define() module: [object Object]
http://requirejs.org/docs/errors.html#mismatch
My code:
(render.js)
var render = function(data, container, width, height, colorPalette, properties, dispatch) { //prepare canvas with width and height of container container.selectAll('svg').remove(); var vis = container.append('svg').attr('width', width).attr('height', height) .append('g').attr('class', 'vis').attr('width', width).attr('height', height); var data = [ [0,-0,0,0,0,3 ], [1,-1,1,2,1,6 ], [2,-2,4,4,0.5,2], [3,-3,9,6,0.33,4], [4,-4,16,8,0.25,9] ]; var pc = d3.parcoords()("#example") .data(data) .render() .ticks(3) .createAxes(); vis.append('pc');HTML
<!-- deps>> --> <script src="http://d3js.org/d3.v3.min.js"></script> <script type="text/javascript" src="../../../libs/NewProject/d3.parcoords.js"></script> <script id="prepare" type="text/javascript">A description how i implement the code or some tips would great.
Thanks in advance
Philip