Hey Harry, I am using this code
bar.to_json('home/brandality1/myproject/static/folder/file', html_out=True, html_path='chart.html')
which produces this template
<html>
<head>
<title>Vega Scaffold</title>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="http://d3js.org/d3.geo.projection.v0.min.js" charset="utf-8"></script>
<script src="http://trifacta.github.com/vega/vega.js"></script>
</head>
<body>
<div id="vis"></div>
</body>
<script type="text/javascript">
// parse a spec and create a visualization view
function parse(spec) {
vg.parse.spec(spec, function(chart) { chart({el:"#vis"}).update(); });
}
parse("home/brandality1/myproject/static/folder/file"); # trouble is here
</script>
</html>
the browser tries to parse the file at domain.com/home/brandality1/myproject/static/folder/file instead of
domain.com/static/folder/file....unless I write a function to generate the right browser path. I have no idea. I am new at this...
[edited by admin for formatting]