New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundled examples generate only svg header line, no drawing #8
Comments
|
Here's a patch showing the changes that work for me. I've no idea if this is right; I only got here through trial-and-error. But the examples seem to be working. |
|
Your changes look entirely reasonable to me. Can you create a pull request please? |
|
If I specify :full I get no body, but the height and width are set, if I specify :!full I get a body, but the height and width aren't set. I also had to make a change to SVG (moritz/svg#1), I don't know if they're related. |
|
For example, using the same example/circle.pl. unmodified: adding :!full to the plot() call: |
|
This patch should allow the payload XML properly display. This also looks to eliminate the error regarding "method 'key' not found...", however I'm not sure if the output is valid. Cheers! |
|
Looks like nd3i beat me to the punch a while ago, however I did not notice his changes in a recently cloned version of the code. If you need me to update things and submit a PR, please let me know. |
|
@Xliff++ Thanks, that patch worked. I plan to release a version of Benchable soon that uses all Perl 6 modules and SVG::Plot was the last thing I was waiting for. |
|
Excellent! Glad I could help. Looking forward to seeing what you have in Benchable. |
The two examples bundled with SVG::Plot, run under current Rakudo (2016.03-113-g37857b2) generate only the svg header element and no drawing elements.
I asked for help on reddit;
https://www.reddit.com/r/perl6/comments/4e133o/problem_using_svgplot/?sort=old
There are links to more details in this thread:
https://www.reddit.com/r/perl6/comments/4e133o/problem_using_svgplot/d1wrz35
It seems that SVG::Plot is generating a couple of bare lists in the output data structure, which leads to XML::Writer ignoring everything but the top svg => [ ] pair. /u/raiph suggested this may have happened with the GLR.
The text was updated successfully, but these errors were encountered: