Questions tagged [pygal]

A python SVG Charts Creator

pygal is a dynamic SVG charting library.

It features various graph types:

  • Bar charts;
  • Line charts;
  • XY charts;
  • Pie charts;
  • Radar charts;
  • Dot charts;
  • Pyramid charts;
  • Funnel charts;
  • Gauge charts;
176 questions
0
votes
1 answer

pygal ImportError with GAE

I'm sure I've done something stupid and the answer is simple, but I can't find it... I want to use pygal on GAE, so I have copied the whole pygal directory to my lib directory. Then, I import it (from another file in lib): import pygal Now I…
P_S
  • 325
  • 1
  • 3
  • 16
0
votes
1 answer

Show plots with pygal

I want to try plots with pygal; however, when I do render nothing appears: xy_chart = pygal.XY() xy_chart.add('test', [(1,2), (2,2)]) xy_chart.render('test.svg') Presumably, that's because the format is svg. Can I somehow save the images in…
Sergey Ivanov
  • 3,719
  • 7
  • 34
  • 59
0
votes
0 answers

Python 2.7- Pygal Bar Chart import error

I downloaded and installed Pygal. import pygal bar_chart= pygal.Bar() And the error I get is Undefined variable from import: Bar I am not sure what is going wrong. Any advise is greatly appreciated.
satishvad
  • 11
  • 6
0
votes
1 answer

send pygal line chart in mail using mandrill api

from past week I am trying to create a simple line chart using pygal python library & send the resulting mail using mandrill api. I placed my render result in "figure" tag as specified in pygal documentation. I am able to send the email but it is…
devlin31
  • 81
  • 10
0
votes
1 answer

pygal on windows - cannot access classes from pygal

I have such short script: import pygal if __name__ == '__main__': bar_chart = pygal.Bar() and following error: AttributeError: 'module' object has no attribute 'Bar' Do you have any idea what is wrong? Shall I configure some additional paths? I…
user2301299
  • 529
  • 1
  • 5
  • 15
0
votes
2 answers

How to get first N elements from a default dictionary in Python 3x

I am searching for pythonic way of getting first N element from a DefaultDict. I searched for it in few forums. Couldn't find any useful solution. I tried the following but this doesn't stop the execution as expected. Code: d_2 = defaultdict(list) i…
v.padmanabhan
  • 37
  • 2
  • 5
0
votes
1 answer

Pygal Displays Box plot wrong

When displaying a box graph, pygal displays values outside of the normal zones. You can see the example on their site as well: You'll notice that no values are above 16,000 or below -4000 (in fact none are below 0). It just doesn't display…
Jono
  • 3,393
  • 6
  • 33
  • 48
0
votes
1 answer

rendering a file in python using pygal - ascii code error

I am trying to create a pygal chart in python and saving it to a .svg file. #Creating pygal charts pie_chart = pygal.Pie(style=DarkSolarizedStyle, legend_box_size = 20, pretty_print=True) pie_chart.title = 'Github-Migration Status Chart (in…
Scooby
  • 3,371
  • 8
  • 44
  • 84
0
votes
1 answer

Flask Pygal Installation - No module named pygal

I want to be able to create dynamic graphs within my Flask application. I am running this application within a virtual environment on a Linux box. I looked around for different libraries that would help me with this, and identified Pygal as the one…
LJPPython
  • 31
  • 2
  • 4
-1
votes
1 answer

Customize PyGal WorldMap chart's tooltip

I'm using pygal for generate a world map chart in Google Colab. The problem I'm facing is with the tooltip. I want to show only in the tooltip the name of the country and the number of videos found. The result so far I've managed to get is as…
-1
votes
1 answer

Can i create a real time chart with Pygal?

I created a Flask-SocketIO Python app. I'm looking for a way to embed into my webpage a real time chart. When the user opens my webpage, he should see the chart updating with new data, but he should also be able to see the data from before the…
All01
  • 61
  • 5
1 2 3
11
12