cumulativeLineChart
ΒΆ
-
class
nvd3.cumulativeLineChart.
cumulativeLineChart
(**kwargs) A cumulative line chart is used when you have one important grouping representing an ordered set of data and one value to show, summed over time.
Python example:
from nvd3 import cumulativeLineChart chart = cumulativeLineChart(name='cumulativeLineChart', x_is_date=True) xdata = [1365026400000000, 1365026500000000, 1365026600000000] ydata = [6, 5, 1] y2data = [36, 55, 11] extra_serie = {"tooltip": {"y_start": "There are ", "y_end": " calls"}} chart.add_serie(name="Serie 1", y=ydata, x=xdata, extra=extra_serie) extra_serie = {"tooltip": {"y_start": "", "y_end": " mins"}} chart.add_serie(name="Serie 2", y=y2data, x=xdata, extra=extra_serie) chart.buildhtml()
Javascript generated:
See the HTML source code of this page, to see the underlying javascript.