The true
Southern watermelon is a boon apart, and not to be
mentioned with
commoner things. It is chief of this world's
luxuries, king
by the grace of God over all the fruits of
the earth. When
one has tasted it, he knows what the angels
eat. It was not
a Southern watermelon that Eve took: we know
it because she
repented.
— Pudd'nhead
Wilson's Calendar
Python Wrapper for NVD3
это библиотека кода на Python, для рисования
потрясающих графиков с помощью NVD3.js.
After installation
use python-nvd3 as follows
from nvd3 import pieChart #Open File to write the D3 Graph output_file = open('test-nvd3.html', 'w') type = 'pieChart' chart = pieChart(name=type, color_category='category20c', height=450, width=450) chart.set_containerheader("\n\n<h2>" + type + "</h2>\n\n") #Create the keys xdata = ["Orange", "Banana", "Pear", "Kiwi", "Apple", "Strawberry", "Pineapple"] ydata = [3, 4, 0, 1, 5, 7, 3] #Add the serie extra_serie = {"tooltip": {"y_start": "", "y_end": " cal"}} chart.add_serie(y=ydata, x=xdata, extra=extra_serie) chart.buildhtml() output_file.write(chart.htmlcontent) #close Html file output_file.close()
original post http://vasnake.blogspot.com/2013/09/python-wrapper-for-nvd3.html
Комментариев нет:
Отправить комментарий