Comments (6)
I am currently working on a few more examples which will be ready with the
next release. At the mean time you can take a look at the play-ground.html
page under test folder. I have also attached a simplified example package
with a single pie chart using the same test data used in play-ground.html.
Have fun :)
Nick
On Tue, Aug 7, 2012 at 10:00 PM, jschoch [email protected] wrote:
i'm having a hard time getting your example to work, any chance you can
whip up a simplified but fully working example with a single chart and put
it in an /examples directory from your source? I've tried to grab the
example from the github page and grabbed the data via wget ndx.csv but it
will not render. Also it is very unclear if renderAll() fails as it does
for me, how do you render a single chart? gainOrLossChart.render() and
gainOrLossChart.doRender() don't seem to do anything but return a chart
object. I have no svg anywhere in my source before or after trying to
.render() or dc.renderAll()As a side note your example shows data.csv which does not exist on github,
so if you want to see what the data looks like it can be confusing as to
where to find the csv file.BTW the error I'm seeing is: Uncaught TypeError: Cannot set property '*
group_index*' of null dc.js:1554—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17.
from dc.js.
I don't see an attachment in the issue, is it somewhere else?
from dc.js.
Huh, forgot it was a reply to github notification. Try replace the body of test/play-ground.html with the following example:
<div id="pie-chart-value" class="chart">
<span>Value DonutChart</span>
<a class="reset" href="javascript:pieChartValue.filterAll();dc.redrawAll();" style="display: none;">reset</a>
<br/><span class="reset" style="display: none;">Current filter: <span class="filter"></span></span>
<div class="clear"></div>
</div>
<script type="text/javascript">
var pieChartValue = dc.pieChart("#pie-chart-value")
.width(250)
.height(250)
.radius(100)
.innerRadius(40)
.dimension(valueDimension)
.group(valueGroup)
.title(function(d) {
return d.data.key + ": " + d.data.value;
})
.renderTitle(true);
dc.renderAll();
</script>
<div class="clear"></div>
<div>
<a href="javascript:dc.renderAll();">Render All</a>
<a href="javascript:dc.filterAll(); dc.renderAll();">Filter All</a>
</div>
from dc.js.
As a side remark, I got this to work locally by grabbing source and data with wget, created a virtual dir and ran it through localhost. For some reason I cannot get it to work by just opening index.html in the browser, it has to run through an actual web server.
from dc.js.
@aggaton This one-liner fires up a web server effortlessly (run in web folder of dc.js project)
ruby -run -ehttpd . -p8000
Should work for anyone with ruby installed.
@jrideout Maybe this should be noted in a 'running the examples' wiki page?
from dc.js.
@aggaton That is because the browser won't allow an ajax request to a local file as a security precaution.
@matthull good idea.
from dc.js.
Related Issues (20)
- DataCount issues improper warning HOT 3
- Stacked bar chart legend label alignment is off in Chrome HOT 3
- Bar charts with rangeChart breaks mouse zoom on second render call. HOT 1
- "brushing on ordinal bar chart" example row chart animation is very slow HOT 4
- Line chart can't renderData point and Brush at same time HOT 3
- 2.x support - crossfilter.quicksort removed in [email protected]
- dc sunburst chart -- color of legend and the chart does NOT match HOT 6
- dc built in wordcloud for dc v4 possible?
- array filter feature in dc.js, how to handle when the .dimensions function takes multiple dimensions? HOT 3
- dc sunburst chart - externalLabels not working
- Seeking new maintainers HOT 5
- vulnerability: d3-color:2.0.0: 1084597(10.0)
- High vulnerability found in d3-color
- Line chart- multiple lines with multiple datasets HOT 2
- Error: No d3.js compatbility nester registered, load v5 or v6 compability layer. HOT 3
- Does it support faceted graphics? HOT 1
- Tip: make dataTable.columns accept object path
- Brushing/filtering issue since 4.1.0 - Broken example HOT 6
- Is DC v4 compatible with D3 v7? HOT 4
- I have set the users group to read only
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dc.js.