mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
Histogram (#888)
* Add Histogram as a visualization The css and js file use the histogram code from https://bl.ocks.org/mbostock/3048450. THe viz.py extends from BaseViz to create chart data only for one histogram * using d3.layout.histogram * CSS updated The new css has been used from the d3 chart http://bl.ocks.org/mbostock/1933560 * bars are visible * added semicolons * histogram from http://bl.ocks.org/mbostock/1933560 It takes as input no of bins. The histogram cycles through a set of colors for different lengths of the bar. It places a y axis coordinate on top or on the upper end of the bar whichever is suitable. * update style changes
This commit is contained in:
committed by
Maxime Beauchemin
parent
d15c557cd6
commit
15ee6d82e3
@@ -32,6 +32,7 @@ const sourceMap = {
|
||||
cal_heatmap: 'cal_heatmap.js',
|
||||
horizon: 'horizon.js',
|
||||
mapbox: 'mapbox.jsx',
|
||||
histogram: 'histogram.js',
|
||||
};
|
||||
const color = function () {
|
||||
// Color related utility functions go in this object
|
||||
|
||||
Reference in New Issue
Block a user