lineWithFocusChart
ΒΆ
-
class
nvd3.lineWithFocusChart.
lineWithFocusChart
(**kwargs) A lineWithFocusChart or line graph is a type of chart which displays information as a series of data points connected by straight line segments. The lineWithFocusChart provide a smaller chart that act as a selector, this is very useful if you want to zoom on a specific time period.
Python example:
from nvd3 import lineWithFocusChart chart = lineWithFocusChart(name='lineWithFocusChart', x_is_date=True, x_axis_format="%d %b %Y") xdata = [1365026400000000, 1365026500000000, 1365026600000000] ydata = [-6, 5, -1] extra_serie = {"tooltip": {"y_start": "", "y_end": " ext"}, "date_format": "%d %b %Y"} chart.add_serie(name="Serie 1", y=ydata, x=xdata, extra=extra_serie) chart.buildhtml()
Javascript generated:
See the HTML source code of this page, to see the underlying javascript.