def jqplot_image(self): """jqPlot Image Example showing how to render a jqPlot chart that is accompanied by a chart Image that can be used for copying and pasting, and printing. """ from random import randint from zoom.vis.jqplot import line page_title = 'JQPlot Line Chart with Image' xaxis_label = 'Month' legend = 'North', 'South' labels = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ) data = [(m, randint(1, 100), randint(1, 100)) for m in labels] options = dict(axes=dict(xaxis=dict(label=xaxis_label, tickInterval=2))) visualization = line(data, legend=legend, title='Page Hits', with_image=True, options=options) return locals()
def jqplot_line(self): """jqPlot Line Example showing how to generate a line chart using jqplot module. """ from random import randint from zoom.vis.jqplot import line page_title = 'JQPlot Line Chart' xaxis_label = 'Month' legend = 'North', 'South' labels = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') data = [(m, randint(1, 100), randint(1, 100)) for m in labels] options = dict(axes=dict(xaxis=dict( label=xaxis_label, tickInterval=2))) visualization = line(data, legend=legend, title='Page Hits by Month', options=options) return locals()
def jqplot_theme(self): """jqPlot Theme Example showing how to add a theme to a jqPlot chart. """ from random import randint from zoom.vis.jqplot import line page_title = 'JQPlot Line Chart' xaxis_label = 'Month' legend = 'North', 'South' labels = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ) data = [(m, randint(1, 100), randint(1, 100)) for m in labels] options = dict(axes=dict(xaxis=dict(label=xaxis_label, tickInterval=2))) theme = 'chocolate', load('assets/chocolate-line.js') visualization = line(data, legend=legend, title='Page Hits', theme=theme, options=options) return locals()
def jqplot_image(self): """jqPlot Image Example showing how to render a jqPlot chart that is accompanied by a chart Image that can be used for copying and pasting, and printing. """ from random import randint from zoom.vis.jqplot import line page_title = 'JQPlot Line Chart with Image' xaxis_label = 'Month' legend = 'North', 'South' labels = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') data = [(m, randint(1, 100), randint(1, 100)) for m in labels] options = dict(axes=dict( xaxis=dict(label=xaxis_label, tickInterval=2))) visualization = line(data, legend=legend, title='Page Hits', with_image=True, options=options) return locals()
def jqplot_theme(self): """jqPlot Theme Example showing how to add a theme to a jqPlot chart. """ from random import randint from zoom.vis.jqplot import line page_title = 'JQPlot Line Chart' xaxis_label = 'Month' legend = 'North', 'South' labels = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') data = [(m, randint(1, 100), randint(1, 100)) for m in labels] options = dict(axes=dict( xaxis=dict(label=xaxis_label, tickInterval=2))) theme = 'chocolate', load('assets/chocolate-line.js') visualization = line(data, legend=legend, title='Page Hits', theme=theme, options=options) return locals()
def jqplot_line(self): """jqPlot Line Example showing how to generate a line chart using jqplot module. """ from random import randint from zoom.vis.jqplot import line page_title = 'JQPlot Line Chart' xaxis_label = 'Month' legend = 'North', 'South' labels = 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' data = [(m, randint(1, 100), randint(1, 100)) for m in labels] options = dict(axes=dict( xaxis=dict(label=xaxis_label, tickInterval=2))) visualization = line(data, legend=legend, title='Page Hits by Month', options=options) return locals()
def c3_line(self): """c3 Line Example showing how to generate a line chart using c3 module. """ from random import randint from zoom.vis.c3 import line page_title = 'C3 Line Chart' xaxis_label = 'Month' legend = 'North', 'South' labels = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec') data = [(m, randint(1, 100), randint(1, 100)) for m in labels] visualization = line(data, legend=legend, title='Page Hits by Month') return locals()
def c3_line(self): """c3 Line Example showing how to generate a line chart using c3 module. """ from random import randint from zoom.vis.c3 import line page_title = 'C3 Line Chart' xaxis_label = 'Month' legend = 'North', 'South' labels = ( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ) data = [(m, randint(1, 100), randint(1, 100)) for m in labels] visualization = line(data, legend=legend, title='Page Hits by Month') return locals()