Questions tagged [svggraph]

SVGGraph is an object-oriented PHP library for creating simple PHP graphs, released as open source under the LGPL v3 license.

12 questions
9
votes
1 answer

Generate graphs in PDF file using TCPDF

There are tons of topics on this, none of which have solved my issue. What I'd like to do is simple - generate a bar graph and then embed this graph into a pdf file that I will be generating with a library called TCPDF. I'm having no problems…
What have you tried
  • 11,018
  • 4
  • 31
  • 45
2
votes
1 answer

PHP SVGGraph and Structured Data

I'm trying to build a structured (multiple) data graph using the PHP SVGGraph script. I've setup my code based on what I can tell is the correct way but my graph is only outputting the age and excluding the height. Here's a screenshot showing just…
Ben Sinclair
  • 3,896
  • 7
  • 54
  • 94
1
vote
1 answer

How can I inverse the y axis data from a svggraph(php library)?

I need to inverse the data from my chart, like when I get the data from March 2015 to April 2014, I want that March 2015(actual time) to be on the right, not on the left. I'm using SVGGraph library. Thank you! $graph = new SVGGraph($w, $h,…
JAGUAR
  • 21
  • 5
1
vote
0 answers

SVGGraph bar graph with just 1 element

I'm creating the graph using a library called svggraph. Generating the graph is very simple. However I am facing an issue when my array has just 1 element. I get an error "Invalid axis: min >= max Invalid axis: min >= max" below is my code $graph =…
gargmanoj
  • 123
  • 9
0
votes
1 answer

SVG Graph in TCPDF is incorrectly rendered

I want to include an SVG image file in a TCPDF document. I draw the graph with SVGGRaph, save it to a file. Then I import the file into TCPDF. When I view the .svg file on it's own, it is rendered correctly. However, when imported into TCPDF, the…
user1072910
  • 263
  • 1
  • 5
  • 17
0
votes
1 answer

SVG Graph Issue in Outlook

I've implemented SVGGraph in one of my Laravel project to send graph report to email. Before starting the project I did some R&D and somehow came to know that email has issue rendering canvas. So I choose svg and came too far with my project. Its…
S M Iftakhairul
  • 1,120
  • 2
  • 19
  • 42
0
votes
1 answer

PHP / SVGgraph data amount labels

Using SVGgraph, is it possible to show only the 'data amount' label but not the label of the data ("l1", "l2" and "l3" in the example)? My code looks like this: require_once("svggraph/SVGGraph.php"); $data = array("l1" => 45, "l2" => 20, "l3" =>…
zsram
  • 366
  • 2
  • 7
0
votes
0 answers

radar chart / spider chart xsl-fo svg?

I have to generate a pdf document written in xsl-fo. I have 8 categories where I pull the percentage into the xsl-fo document, and I need to visualize it on a radar chart. Is it possible to create a spider chart in xsl-fo? Maybe in svg and…
Meredydd
  • 41
  • 6
0
votes
0 answers

Ruby SVG '<': comparison of String with 0 failed (ArgumentError)'

I'm trying to write a svg graph using a pgsql connection. I'm having an issue with writing the data to a svg. I've used the documentation from the svggraph for a timeseries graph. require 'svggraph' graph = SVG::Graph::TimeSeries.new( { …
user2723240
  • 803
  • 1
  • 13
  • 23
0
votes
1 answer

How to create SVGGraph with thin bars on a wide grid?

I am using PHP SVGGraph to build a graph. I have a graph that currently looks like this: What I would like to do is keep the width of the grid the same but the bars should not be so wide. I am not able to find anything in the docs on whether this…
Lawrence Cooke
  • 1,567
  • 3
  • 26
  • 52
0
votes
1 answer

SVG Graph Undefined index: rgb(0,0,0)

Short explanation: I have just installed version 2.15.1 of SVGGraph (the latest at the time of writing). Now when I am setting it up I have the following error pop up: Error 8 @ line 1331 of APP_ROOT/inc/SVGGraph/SVGGraphGridGraph.php : Undefined…
Jack
  • 11
  • 1
  • 7
0
votes
1 answer

Imagick convert SVG to PNG - colors replaced by black and white

I'am trying to convert an SVG Image which is created by the SVGGraph library ( http://www.goat1000.com/svggraph.php). The SVG is colored (red, green, yellow, gray, ...) in the browser and everything is fine. But when I convert it, its just black…
oneandonlycore
  • 480
  • 6
  • 23