How to use python's canvas in html5-javascript (WITHOUT Tkinter)(need for loop) -
i need create pie charts, use "chart.js" js lib. first of don't know how many chart i'll need i'll use loop, thats why cant use directly html5's canvas.
i've array name array1 , has 2 elements, , theese 2 elements have 4 elements : "name,number1,number2,number3"
in pie charts, need see number2 , number3, in html5 code create them , build loops each array list , tried use 1 canvas created in html5, worked. there isnt problem in loop think.
is there anyway make loop in html5 or need create canvases in python ?
if need create canvases in python, need use,
in python :
selector = //todo e.canvas() elts = list() output = e.div(*elts) //todo in html5-js :
window.mgr.draw_output = function (data,selector) { //todo //somecodes builded drawing pie charts } thanks helps!
Comments
Post a Comment