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:

You can also disable the tooltips by passing tooltips=False when creating the bar chart.

Python example:

chart = discreteBarChart(name='discreteBarChart-notooltip', height=400, width=400,

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