multiBarHorizontalChart
ΒΆ
-
class
nvd3.multiBarHorizontalChart.
multiBarHorizontalChart
(**kwargs) A multiple horizontal bar graph contains comparisons of two or more categories or bars.
Python example:
from nvd3 import multiBarHorizontalChart chart = multiBarHorizontalChart(name='multiBarHorizontalChart', height=400, width=400) xdata = [-14, -7, 7, 14] ydata = [-6, 5, -1, 9] y2data = [-23, -6, -32, 9] extra_serie = {"tooltip": {"y_start": "", "y_end": " balls"}} chart.add_serie(name="Serie 1", y=ydata, x=xdata, extra=extra_serie) extra_serie = {"tooltip": {"y_start": "", "y_end": " calls"}} chart.add_serie(name="Serie 2", y=y2data, x=xdata, extra=extra_serie) chart.buildcontent()
Javascript generated:
See the HTML source code of this page, to see the underlying javascript.