Questions tagged [pychart]

13 questions
4
votes
1 answer

Not able to click on label in google chart api

I am new to javascript and i am using google chart api for creating charts. i wanted to click on left side label that shows in below image. so, my question is that can we click on left side label? give me some idea for this. if it is possible then…
3
votes
3 answers

How to install a library in a virtualenv when its link is broken in pip

So I want to install openerp 7.0.406 that require pychart and the only link for it seems broken in pip. No distributions at all found for pychart in ./env/lib/python2.7/site-packages (from openerp-core==7.0.406->-r picdyn_openerp_conf/requirements…
Pierre.Sassoulas
  • 3,733
  • 3
  • 33
  • 48
2
votes
4 answers

QProcess will not open python script

I cannot figure out why this does not work: void Controller::on_buttonVisualTracking_clicked() { QProcess *trackingProcess = new QProcess(); trackingProcess->start("python C:\\visualTracking.py"); } The specific script here is a pychart…
granitdev
  • 136
  • 2
  • 13
1
vote
2 answers

For loop inside a function

I'm still learning Python, and I'd love to know a way to make the following work: a_function( for n,item in enumerate(list): inside_function(code code code, code code code, code code code)) So there's a…
lowercasename
  • 281
  • 4
  • 14
1
vote
1 answer

Python Pychart color

I have a little problem. When I add a dataset (that is a list) to a chart (pychart), i can only give to data one color on the final chart. I would have different colors depending on list element's value. How can I do that ? I attach my code. c =…
DonCallisto
  • 29,419
  • 9
  • 72
  • 100
1
vote
2 answers

Why is the layout, don't update?

I need, to clear my chartViewers from a layout, but when I do, I can't delete the last widget. when I test the length of my layout, I get 0 but the widget is still here after update of the layout, as in the picture : here my code when I delete,…
gxmad
  • 1,650
  • 4
  • 23
  • 29
1
vote
0 answers

What are the python3 graphic options to replace old pychart

I am upgrading a very old project from Django 1.2 to 1.6, and Python 2.6 to Python 3.4. It has a very old graphics package called PyChart which never been updated since 2006. Of cause, it is not compatible with my current python3. What are good…
fd8323
  • 11
  • 3
1
vote
1 answer

Bringing PyQt and PyChart together

I want to visualize some measurement values in realtime. I think - although not finally sure - I can do this with PyChart. The surrounding application is based on PyQt. Now I', wondering how I can put the chart drawn using PyChart into some qt…
wollud1969
  • 497
  • 4
  • 13
1
vote
1 answer

AttributeError: 'NoneType' object has no attribute 'show'

I want to get a PDF file, but I get an error: AttributeError: 'NoneType' object has no attribute 'show'. The error says that can doesn't have the attribute show. Why? As you can see, I import show from pychart.canvas. from pychart import * from…
wangling
  • 429
  • 1
  • 7
  • 9
0
votes
1 answer

ValueError: Input contains NaN, infinity or a value too large for dtype('float64')- km.fit(x)

I am using python for clustering a set of data that I have, but it is showing me this error and I do not where should I make the changes and in which file: ValueError: Input contains NaN, infinity or a value too large for dtype('float64'). and the…
Maryna Azeez
  • 69
  • 3
  • 13
0
votes
1 answer

how do I render PyChart.JS charts in web2py?

So I'm trying to make use of the PyChartJS module and so far I have this. This is the class for the PieChart: class newPieChart(BaseChart): def setData(self, _data: dict): self.data.data = [_ for _ in _data.values()] return def…
K. Koster
  • 142
  • 9
0
votes
1 answer

how to add the chart/graph to worksheet/excelsheet using python

I have created the chart using pychart but the output is coming in the form of pdf/png/ps etc .. but i need these chart should come into the excel sheet. what is the way to extract this chart to worksheet. from pychart import * import sys def…
-2
votes
3 answers

why will it return 0 when i need to give me something else?

i built this program for school. its still in progress, but i hit a lump in the road and im about he tear my hair out. ive already tried changing my variables, how they are set up, and its super annoying how nothing i can think of works. i cant get…