Webcharts
Webcharts copied to clipboard
Reusable, flexible, interactive charts with JavaScript
``` this.current_data.forEach(function(d){ d.matches = chart.current_data.filter(function(f){ return f.values.x == d.values.x & f.values.y == d.values.y }) d.count = d.matches.length d.i = d.matches.indexOf(d) if(d.i < d.count/2){ d.offsetx = (d.i - (d.count/4)) d.offsety =...
Missing bars in period 7 is because the ‘group’ variable is missing for several of those bars. Bars aren’t drawing when the variable specified in mark[].split is missing.
for picking a value from a continuous range
Something like this? { type: "dropdown", options: ["x.column","marks[0].per[0]"], label: "Group by", values: ["Sector", "PrimaryFunction", "year", "Title"], require: true },
See partial implementation in this [example](http://bl.ocks.org/samussiah/raw/afe3abbce6b574926536bb12292a4e72/) using this [branch]( https://github.com/RhoInc/safety-outlier-explorer/tree/query-highlighting-with-modals) of the [Safety outlier explorer renderer](https://github.com/RhoInc/safety-outlier-explorer/)
Create a standard option for creating a webCharts table showing the raw data associated with a mark when clicking on said mark.
Makes the flow in the config object a bit more logical, and allows for a bit more flexibility in the edge case where you want to plot 2 different dates...