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 Charts Not Working On Internet Explorer 11

I can't seem to figure out how to make my Pygal Charts rendered as Base 64 URI work on IE 11. In fact, when visiting the Pygal Documentation (http://www.pygal.org/en/stable/) on IE 11 none of their charts work on IE either. Does anyone know a…
ashap
  • 101
  • 1
  • 11
0
votes
1 answer

How to make a bar table using pygal with string records.?

I am creating table using pygal, the example in the link works well, but I did the below change in it. line_chart = pygal.Bar() line_chart.title = 'Browser usage evolution (in %)' line_chart.x_labels = map(str, range(2002,…
Alpha Geek
  • 457
  • 7
  • 17
0
votes
1 answer

Pygal bar chart says "No Data"

I am trying to create a bar graph in pygal that uses the api for github and charts the most popular projects based on stars. I posted my code below, but I cannot figure out why my graph keep saying "No Data"??? Any suggestions? Thanks! import…
johankent30
  • 65
  • 2
  • 3
  • 11
0
votes
0 answers

Pygal.maps.world.World() is not interactive

I am trying to build an interactive Pygal worldmap. I posted my code below, but any ideas why the numbers are not showing up when I hover over the map? Thanks! import pygal wm = pygal.maps.world.World() wm.title = "Americas" wm.add('North…
johankent30
  • 65
  • 2
  • 3
  • 11
0
votes
1 answer

How to set spacing between dates on x-axis in a graph when using pygal for plot generation?

I am currently using pygal for graph generation and I am having issue with dates on x-axis as their number is increasing and they are starting to overlap. I want to either provide spacing among the dates or put the dates there weekly. If anyone can…
Tarun Gupta
  • 504
  • 5
  • 11
0
votes
1 answer

Configure a pygal chart with an external conf file?

I'm using pygal to chart some data in a web app I'm working on and thought it would be a good idea to externalize the configuration of the chart. So I wrote a section in my conf file that replicated my in code conf: [ChartOptions] x_label_rotation:…
Ray Stojonic
  • 1,260
  • 1
  • 7
  • 11
0
votes
1 answer

Set max-height embed element inside a embed-responsive bootstrap class

I'm trying to insert an interactive plot using and make it responsive with bootstrap. Works fine but I want to reduce the max size of the chart and I can't find a solution. This is the working (but huge) plot:
Juan David
  • 2,676
  • 4
  • 32
  • 42
0
votes
0 answers

How to get the desired values out of this dictionary?

I'm trying to create a population map using the pygal.maps.world module, but certain countries wouldn't show up in the final file. I appended the code with the problematic countries, but it still doesn't work. Here's the code to get the…
Zekany
  • 11
  • 2
0
votes
1 answer

Using Python, how can I update data programmatically for a Pygal chart?

Using Python, how can I update data programmatically for a Pygal chart? The code below works fine as a static Stacked-Bar chart, but I can't figure out how to accommodate changing values. Considerations/issues: My values, that I would like to…
0
votes
1 answer

How to draw a proper graph with different Y parameters?

I am reading from MySQL database this kind of data: ('c9', 2862, datetime.datetime(2016, 4, 30, 22, 34, 38)) ('f2', 2862, datetime.datetime(2016, 4, 30, 22, 35, 38)) ('f3', 2864, datetime.datetime(2016, 4, 30, 22, 36, 38)) ('f4', 2863,…
Ahmed Al-haddad
  • 805
  • 2
  • 16
  • 41
0
votes
1 answer

Scale pygal svg graphs in web page with susy

I am trying to place two svg files side by side in a web page. This I have done using susy to create the spans, first one is 2 columns wide, the second 10 columns. I place a narrow bar graph in the first span, and a wide line graph in the second…
Rob
  • 2,511
  • 2
  • 20
  • 31
0
votes
1 answer

pygal data series of different lengths

How can I plot multiple data series with different number of elements and have them fill the graph along the x axis? At the moment if I graph a = [1,2,3,4,5] and b = [1,2,3] the b lines only covers half the graph. Is this possible or do I need to…
Rob
  • 2,511
  • 2
  • 20
  • 31
0
votes
0 answers

Pygal not rendering Legend properly in PNG

I am trying to render a chart in PNG format, because this image is going to be embed in a email template and SVG are not supported on every email client, when I render the chart in SVG format it looks quite fine but when I render on PNG, the chart…
Cheluis
  • 1,402
  • 3
  • 22
  • 51
0
votes
1 answer

How to pass an array in python pandas to plot two axes?

I am trying to create an XY chart using Python and the Pygal library. The source data is contained in a CSV file with three columns; ID, Portfolio and Value. Unfortunately I can only plot one axis and I suspect it's an issue with the array. Can…
Edmund
  • 65
  • 2
  • 10
0
votes
1 answer

Python + Pycharm = pbm installing lxml & cairosvg 'Directory not owned by current user'

Using Pycharm, I am trying to install Pygall, which needs lxml and cairosvg. I created a 'requirements.txt' file to list the modules: Executed command : pip install lxml Error: 0:425: execution error: The directory…
Romain Jouin
  • 4,448
  • 3
  • 49
  • 79
1 2 3
11
12