class nvd3.discreteBarChart.discreteBarChart(**kwargs)

A discrete bar chart or bar graph is a chart with rectangular bars with lengths proportional to the values that they represent.

Python example:

from nvd3 import discreteBarChart
chart = discreteBarChart(name='discreteBarChart', height=400, width=400)

xdata = ["A", "B", "C", "D", "E", "F"]
ydata = [3, 4, 0, -3, 5, 7]

chart.add_serie(y=ydata, x=xdata)

Javascript generated:

See the HTML source code of this page, to see the underlying javascript.