Module Expr Str ImportFrom alias alias ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Str keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Dict Str Str decorator_list decorator_list
N/A N/A 
Python-nvd3 is a Python wrapper for NVD3 graph library.
NVD3 is an attempt to build re-usable charts and chart components
for d3.js without taking away the power that d3.js gives you.

Project location : https://github.com/areski/python-nvd3
 NVD3Chart NVD3Chart TemplateMixin discreteBarChart N/A TemplateMixin NVD3Chart N/A N/A 
    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)
        chart.buildhtml()

    Javascript generated:

    .. raw:: html

        <div id="discreteBarChart"><svg style="height:450px; width:100%"></svg></div>
        <script>
            data_discreteBarChart=[{"values": [{"y": 3, "x": "A"}, {"y": 4, "x": "B"}, {"y": 0, "x": "C"}, {"y": -3, "x": "D"}, {"y": 5, "x": "E"}, {"y": 7, "x": "F"}], "key": "Serie 1", "yAxis": "1"}];

            nv.addGraph(function() {
                var chart = nv.models.discreteBarChart();

                chart.margin({top: 30, right: 60, bottom: 20, left: 60});

                var datum = data_discreteBarChart;
                        chart.yAxis
                            .tickFormat(d3.format(',.0f'));
                        chart.tooltipContent(function(key, y, e, graph) {
                            var x = String(graph.point.x);
                            var y = String(graph.point.y);
                            var y = String(graph.point.y);

                            tooltip_str = '<center><b>'+key+'</b></center>' + y + ' at ' + x;
                            return tooltip_str;
                        });

                d3.select('#discreteBarChart svg')
                    .datum(datum)
                    .transition().duration(500)
                    .attr('width', 400)
                    .attr('height', 400)
                    .call(chart);
            });
        </script>


    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,
                                 tooltips=False)

    .. raw:: html

        <div id="discreteBarChart-notooltip"><svg style="height:450px; width:100%"></svg></div>
        <script>
            data_discreteBarChart=[{"values": [{"y": 3, "x": "A"}, {"y": 4, "x": "B"}, {"y": 0, "x": "C"}, {"y": -3, "x": "D"}, {"y": 5, "x": "E"}, {"y": 7, "x": "F"}], "key": "Serie 1", "yAxis": "1"}];

            nv.addGraph(function() {
                var chart = nv.models.discreteBarChart();

                chart.margin({top: 30, right: 60, bottom: 20, left: 60});
                chart.tooltips(false);
                var datum = data_discreteBarChart;
                        chart.yAxis
                            .tickFormat(d3.format(',.0f'));
                        chart.tooltipContent(function(key, y, e, graph) {
                            var x = String(graph.point.x);
                            var y = String(graph.point.y);
                            var y = String(graph.point.y);

                            tooltip_str = '<center><b>'+key+'</b></center>' + y + ' at ' + x;
                            return tooltip_str;
                        });

                d3.select('#discreteBarChart-notooltip svg')
                    .datum(datum)
                    .transition().duration(500)
                    .attr('width', 400)
                    .attr('height', 400)
                    .call(chart);
            });
        </script>

     N/A CHART_FILENAME ./discretebarchart.html N/A template_chart_nvd3 N/A N/A N/A NVD3Chart template_environment get_template CHART_FILENAME __init__ N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super discreteBarChart self __init__ kwargs N/A N/A self model discreteBarChart N/A height N/A N/A kwargs get height 450 N/A width N/A N/A kwargs get width None N/A N/A N/A kwargs get x_is_date False N/A N/A N/A N/A self set_date_flag True N/A N/A N/A self create_x_axis xAxis format N/A N/A kwargs get x_axis_format %d %b %Y %H %S date True N/A N/A N/A N/A self create_x_axis xAxis format None N/A N/A N/A self create_y_axis yAxis format N/A N/A kwargs get y_axis_format .0f N/A N/A N/A self set_custom_tooltip_flag True N/A N/A N/A self set_graph_height height N/A width N/A N/A N/A N/A self set_graph_width width N/A tooltips N/A N/A kwargs get tooltips True N/A N/A tooltips N/A N/A N/A self chart_attr N/A tooltips false N/A N/A