# Path: pive/visualization/defaults.py

# 
# Path: pive/visualization/basevisualization.py
# class BaseVisualization:
#     def __init__(self):
#     def set_div_hook(self, div_hook):
#     def get_js_code(self):
#     def get_json_dataset(self):
#     def set_title(self, title):
#     def set_labels(self, labels):
#     def set_dataset(self, dataset):
#     def set_chart_colors(self, colors):
#     def generate_visualization_dataset(self, dataset):
#     def write_dataset_file(self, dataset, destination_url, filename):
#     def create_css(self, template):
#     def create_html(self, template):
#     def create_js(self, template, dataset_url):
#     def write_file(self, output, destination_url, filename):
#     def create_visualization_files(self, destination_url):
#     def set_height(self, height):
#     def set_width(self, width):
#     def set_dimension(self, width, height):
#     def load_template_file(self, template_url):
# 
# Path: pive/visualization/viewportvisualization.py
# class ViewportVisualization:
# 	def __init__(self):
# 	def setIconProperties(self, iconwidth, iconheight, iconcolor, iconhighlight):
# 	def setJumplength(self, jumplength):
# 	def setViewport(self, viewport):


import jinja2
import os
import json
from pive.visualization import defaults as default
from pive.visualization import basevisualization as bv
from pive.visualization import viewportvisualization as vv

# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.



class Chart(bv.BaseVisualization, vv.ViewportVisualization):
    def __init__(self,
                 dataset,
                 template_name,
                 width=default.width,
                 height=default.height,
                 padding=default.padding,
                 viewport=default.viewport,
                 jumplength=default.jumplength):

        # Initializing the inherited pseudo-interfaces.

# Path: pive/visualization/defaults.py

# 
# Path: pive/visualization/basevisualization.py
# class BaseVisualization:
#     def __init__(self):
#     def set_div_hook(self, div_hook):
#     def get_js_code(self):
#     def get_json_dataset(self):
#     def set_title(self, title):
#     def set_labels(self, labels):
#     def set_dataset(self, dataset):
#     def set_chart_colors(self, colors):
#     def generate_visualization_dataset(self, dataset):
#     def write_dataset_file(self, dataset, destination_url, filename):
#     def create_css(self, template):
#     def create_html(self, template):
#     def create_js(self, template, dataset_url):
#     def write_file(self, output, destination_url, filename):
#     def create_visualization_files(self, destination_url):
#     def set_height(self, height):
#     def set_width(self, width):
#     def set_dimension(self, width, height):
#     def load_template_file(self, template_url):
# 
# Path: pive/visualization/viewportvisualization.py
# class ViewportVisualization:
# 	def __init__(self):
# 	def setIconProperties(self, iconwidth, iconheight, iconcolor, iconhighlight):
# 	def setJumplength(self, jumplength):
# 	def setViewport(self, viewport):


# Path: pive/visualization/barchart.py
import jinja2
import os
import json
from pive.visualization import defaults as default
from pive.visualization import basevisualization as bv
from pive.visualization import viewportvisualization as vv


# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.



class Chart(bv.BaseVisualization, vv.ViewportVisualization):
    def __init__(self,
                 dataset,
                 template_name,
                 width=default.width,
                 height=default.height,
                 padding=default.padding,
                 viewport=default.viewport,
                 jumplength=default.jumplength):

        # Initializing the inherited pseudo-interfaces.

        bv.BaseVisualization.__init__(self)